Skip to content

docs(agent-status): make design references self-contained - #13902

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-agent-status-doc-citations
Aug 12, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-agent-status-doc-citations

Conversation

@nwparker

@nwparker nwparker commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

docs/design/agent-status-over-ssh.md is cited from 17 places across src/ as the authority for why per-pane agent-status replay works the way it does. That file does not exist — there is no docs/design/ directory in this repo. Reviewers have been pointed at a document nobody can open.

We are deliberately not checking design docs into version control, so this replaces each pointer with the invariant the code actually relies on, keeping the knowledge without the doc.

Scope

Comment/JSDoc only — no executable statement, type, signature, or string literal changed.

Fixes 14 of the 17 citations. The remaining 3 (useIpcEvents.ts:3177, useIpcEvents.ts:3737, agent-status-types.ts:229) are owned by the concurrent agent-status batching change and are scrubbed there, to avoid a conflict.

Went slightly past a literal grep to catch bare section-number references (relay.ts:873 "(§5 Path 3)", agent-hook-relay.ts:11/197, installer-utils-remote.ts:88) and removed stale "(commit #7/#8)" pointers.

Validation

typecheck:tsc:node and typecheck:tsc:web clean. 471 tests across 14 files (shared + relay + main-process), 0 failures. check:code-quality:changed reports 0 new findings.

Note for a follow-up

~20 other phantom design-doc citations exist in this repo (docs/design/github-project-view-tasks.md, DESIGN_DOC_TERMINAL_HISTORY_FIX_V2.md, telemetry-plan.md, terminal-query-authority.md, docs/upstream-base-ref-design.md). Out of scope here; worth a triage ticket so it isn't rediscovered.

Made with Orca 🐋

docs/design/agent-status-over-ssh.md was cited from ~10 source files but
does not exist in the repo. Replace each pointer with the invariant the
code actually relies on so the knowledge survives without the doc.

Renderer-side citations (useIpcEvents.ts, agent-status-types.ts) are left
for the concurrent batching change that owns those files.

Co-authored-by: Orca <help@stably.ai>
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 68165b77-3107-44a1-9730-46ef8258cb88

📥 Commits

Reviewing files that changed from the base of the PR and between 96c17b4 and 9ed7816.

📒 Files selected for processing (11)
  • src/main/agent-hooks/installer-utils-remote.ts
  • src/main/agent-hooks/server.ts
  • src/main/cursor/hook-service.ts
  • src/main/gemini/hook-service.ts
  • src/main/ssh/ssh-relay-session.ts
  • src/relay/agent-hook-server.ts
  • src/relay/plugin-overlay.ts
  • src/relay/pty-handler.ts
  • src/relay/relay.ts
  • src/shared/agent-hook-listener.ts
  • src/shared/agent-hook-relay.ts

📝 Walkthrough

Walkthrough

Updated comments across agent-hook, SSH, relay, and shared modules. Removed references to design documents. Clarified remote installation constraints, managed script and JSON parity, replay-cache behavior, plugin-source delivery, PTY cleanup, environment augmentation, connection identity handling, and pull-based replay. No runtime logic or public declarations changed.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the scope and validation, but it omits the required AI Review Report and Security Audit sections and does not explicitly address screenshots or platform compatibility. Add the missing template sections, state that there is no visual change, document the AI review and security audit, and confirm macOS, Linux, and Windows compatibility checks.
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the removal of invalid design-document references from agent-status documentation.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 971d954 into main Aug 12, 2026
45 checks passed
@nwparker
nwparker deleted the nwparker/fix-agent-status-doc-citations branch August 12, 2026 05:13
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…3902)

docs/design/agent-status-over-ssh.md was cited from ~10 source files but
does not exist in the repo. Replace each pointer with the invariant the
code actually relies on so the knowledge survives without the doc.

Renderer-side citations (useIpcEvents.ts, agent-status-types.ts) are left
for the concurrent batching change that owns those files.

Co-authored-by: Orca <help@stably.ai>
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