Skip to content

Commit b393098

Browse files
committed
chore: clean harness paths + watcher scope
1 parent 463fa27 commit b393098

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

mise-tasks/test-screenshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ print_permission_hint() {
4040

4141
# Build windowlist helper if needed
4242
if [[ ! -x "$WINDOWLIST" ]]; then
43-
swiftc -O "$ROOT_DIR/scripts/windowlist.swift" -o "$WINDOWLIST" 2>/dev/null
43+
swiftc -O "$ROOT_DIR/scripts/harness/windowlist.swift" -o "$WINDOWLIST" 2>/dev/null
4444
fi
4545

4646
# Get window ID without stealing focus
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ for window in windowList {
1919
let height = bounds["Height"] as? Int else {
2020
continue
2121
}
22-
22+
2323
let area = width * height
2424
if area > bestWindow.area {
2525
bestWindow = (windowNumber, area)

src-tauri/.tauriignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Keep Tauri dev rebuild scope focused on app/runtime sources.
2+
# Ignore docs/content and lab-only paths from Rust-side watching.
3+
../docs/**
4+
../README.md
5+
../AGENTS.md
6+
../TODO.md
7+
../scripts/lab/**
8+
../tmp/**

src/lib/__tests__/runtimeService.protocol.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("RuntimeService protocol response correlation", () => {
1818
let resolvedPayload: Record<string, unknown> | null = null;
1919
const timeout = setTimeout(() => undefined, 10_000);
2020

21-
runtimeService.pendingRpcResponses.set("req-legacy", {
21+
runtimeService.pendingRpcResponses.set("req-forwarded-response", {
2222
resolve: (payload) => {
2323
resolvedPayload = payload;
2424
},
@@ -27,15 +27,15 @@ describe("RuntimeService protocol response correlation", () => {
2727
});
2828

2929
runtimeService.resolvePendingRpcResponse({
30-
id: "req-legacy",
30+
id: "req-forwarded-response",
3131
type: "response",
3232
command: "prompt",
3333
success: true,
3434
data: {},
3535
});
3636

3737
expect(resolvedPayload).toBeNull();
38-
expect(runtimeService.pendingRpcResponses.has("req-legacy")).toBe(true);
38+
expect(runtimeService.pendingRpcResponses.has("req-forwarded-response")).toBe(true);
3939

4040
clearTimeout(timeout);
4141
runtimeService.pendingRpcResponses.clear();
@@ -58,7 +58,7 @@ describe("RuntimeService protocol response correlation", () => {
5858
let resolvedPayload: Record<string, unknown> | null = null;
5959
const timeout = setTimeout(() => undefined, 10_000);
6060

61-
runtimeService.pendingRpcResponses.set("req-v2", {
61+
runtimeService.pendingRpcResponses.set("req-taskd-envelope", {
6262
resolve: (payload) => {
6363
resolvedPayload = payload;
6464
},
@@ -67,20 +67,20 @@ describe("RuntimeService protocol response correlation", () => {
6767
});
6868

6969
runtimeService.resolvePendingRpcResponse({
70-
id: "req-v2",
70+
id: "req-taskd-envelope",
7171
ok: true,
7272
result: {
7373
accepted: true,
7474
},
7575
});
7676

7777
expect(resolvedPayload).toEqual({
78-
id: "req-v2",
78+
id: "req-taskd-envelope",
7979
ok: true,
8080
result: {
8181
accepted: true,
8282
},
8383
});
84-
expect(runtimeService.pendingRpcResponses.has("req-v2")).toBe(false);
84+
expect(runtimeService.pendingRpcResponses.has("req-taskd-envelope")).toBe(false);
8585
});
8686
});

0 commit comments

Comments
 (0)