Skip to content

Address review findings from PR #1157 (issue #1123) - #1158

Merged
malibio merged 1 commit into
mainfrom
worktree-issue-1123-review-followup
May 18, 2026
Merged

malibio merged 1 commit into
mainfrom
worktree-issue-1123-review-followup

Conversation

@malibio

@malibio malibio commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #1157 addressing non-blocker review findings:

  • Startup validation: NODESPACED_SHIM_DIR now logs a warning at daemon startup if the path is missing, instead of failing silently per session
  • Per-agent activation text: tools_section() is now agent-specific — Claude Code gets an explicit nodespace-hook.ts path hint so hooks discovery works; other agents get the generic tool list
  • Error message: write_shim_files error message simplified (no source chain regression)
  • Gemini handler docs: stdio protocol documented ({ result } / { error } + exit 1)
  • Tests: expanded to cover per-agent tools_section behavior (13 total for tools section)

Skipped with justification:

  • Flat session_dir collision risk — one-agent-per-session invariant holds; the spec writes files flat and no collision path exists today
  • tsconfig.json shims include — shim files use agent-runtime declare globals that produce false-positive tsc errors when compiled standalone

🤖 Generated with Claude Code

- Validate NODESPACED_SHIM_DIR at daemon startup: log a warning when the
  path is missing rather than failing silently per session
- Make tools_section() per-agent: Claude Code gets an explicit hook file
  path hint so hooks discovery can find nodespace-hook.ts in session dir
- Simplify write_shim_files error message (no source chain regression)
- Document Gemini handler stdio protocol (success/error shapes, exit code)
- Expand tools_section tests: check all agents, Claude Code path hint,
  and verify non-Claude agents don't include hook file reference

Skipped: flat session_dir collision (one-agent-per-session invariant holds);
tsconfig shims include (declare globals cause false-positive tsc errors).

Co-Authored-By: Claude <[email protected]>
@malibio
malibio merged commit ca49891 into main May 18, 2026
@malibio
malibio deleted the worktree-issue-1123-review-followup branch May 18, 2026 09:11
malibio added a commit that referenced this pull request Jun 22, 2026
- Validate NODESPACED_SHIM_DIR at daemon startup: log a warning when the
  path is missing rather than failing silently per session
- Make tools_section() per-agent: Claude Code gets an explicit hook file
  path hint so hooks discovery can find nodespace-hook.ts in session dir
- Simplify write_shim_files error message (no source chain regression)
- Document Gemini handler stdio protocol (success/error shapes, exit code)
- Expand tools_section tests: check all agents, Claude Code path hint,
  and verify non-Claude agents don't include hook file reference

Skipped: flat session_dir collision (one-agent-per-session invariant holds);
tsconfig shims include (declare globals cause false-positive tsc errors).

Co-authored-by: Michael Libio <[email protected]>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant