You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Match existing patterns** — keep naming, lifecycle hooks, tool contracts, and TUI behavior consistent with the current code.
10
-
-**Preserve context-management semantics** — changes to `spawn`, `ledger`, or `handoff` should keep the agent workflow predictable across session resets and compaction.
10
+
-**Preserve context-management semantics** — changes to `spawn`, `notebook`, or `handoff` should keep the agent workflow predictable across session resets and compaction.
11
+
-**Use static imports only for `spawn/renderer.ts`** — it registers the frame scheduler into the singleton container at module evaluation time. Switching to `await import()` will silently break test isolation because the test harness cannot overwrite the singleton before registration.
11
12
-**AI-agent generated contributions are welcome** — include enough human intent and validation context in the PR for reviewers to trust the result.
12
13
13
14
## Suggested Workflow
14
15
15
16
1.**Research the area**
16
-
- Identify the relevant primitive: spawn, ledger, handoff, watchdog, or extension wiring.
17
-
- Read nearby tests in `agenticoding.test.ts` before changing behavior.
17
+
- Identify the relevant primitive: spawn, notebook, handoff, watchdog, or extension wiring.
18
+
- Read the relevant suite in `tests/unit/` before changing behavior.
18
19
19
20
2.**Plan the smallest safe change**
20
21
- Reuse existing state and lifecycle hooks when possible.
@@ -38,6 +39,13 @@ Before submitting, check that your change:
38
39
- Handles reset, cancellation, and stale-session cases where relevant.
39
40
- Keeps docs aligned with the package version and installed behavior.
40
41
42
+
## Tests
43
+
44
+
-`npm test` — runs the unit suite under `tests/unit/` via the in-repo Node test runner.
45
+
-`npm run test:snapshots:check` — runs only the render-snapshot tests; fails on any drift in `tests/__snapshots__/`.
46
+
-`npm run test:snapshots:update` — rewrites the golden files in `tests/__snapshots__/` after an intentional render change. Review the diff carefully: snapshot updates are the only signal that catches unintended UI regressions.
47
+
-`npm run test:e2e` — runs the process-isolated end-to-end suite under `tests/e2e/`.
48
+
41
49
## Community
42
50
43
51
Use GitHub Issues for bug reports and feature requests. Keep discussions concrete: describe the agent workflow you expected, what happened instead, and any reproduction steps.
0 commit comments