Skip to content

docs: troubleshooting, environment and orchestration pages; the mcp crate is not deferred - #567

Merged
bastien-gallay merged 4 commits into
mainfrom
docs/book-reference-pages
Nov 11, 2026
Merged

bastien-gallay merged 4 commits into
mainfrom
docs/book-reference-pages

Conversation

@bastien-gallay

Copy link
Copy Markdown
Collaborator

What

  • Live bridge page: the hand-kept "What is still open" table (one issue,
    while a dozen area:mcp issues are open) becomes a pointer to the release
    notes, CHANGELOG.md and the area:mcp issue list. No other book page
    carried a hand-kept gap list, and nothing linked to the removed anchor.
  • New Reference page, Troubleshooting: second launch exiting with code 2,
    where the log is, the Windows console window before 11 24H2, lost
    notification clicks, a Claude session with no termherd MCP server,
    settings.json set aside / not reloaded / clamped, a shell stuck on
    starting. Each entry links to the page that owns the fact.
  • New Reference page, Environment variables: what TermHerd reads
    (TERMHERD_MCP_ATTACH, RUST_LOG, TMPDIR/TMP, USERPROFILE/HOME,
    ZDOTDIR/TERMHERD_ORIG_ZDOTDIR), what every session receives (TERM,
    TERM_PROGRAM, TERM_PROGRAM_VERSION, zsh's ZDOTDIR and
    TERMHERD_ORIG_ZDOTDIR) and the Claude session variables it strips, plus
    what a custom ZDOTDIR means for zsh integration.
  • New MCP page, Orchestrating sessions: handles, background opens, the
    brief-file handover, act → wait (busy, then idle) → read, the 5-minute
    wait cap, allow_claude_nesting, suggestions in another tab's input box,
    screenshot last. Self-contained, so it can later be served as a resource.
  • docs/ARCHITECTURE.md: the mcp name now belongs to the shipped
    control surface; only the IDE bridge stays deferred. The risk entry no
    longer claims an IdeBridge port exists in core (none does). The stdio
    page and docs/agents/mcp.md now cite §7 for the IDE-bridge sketch,
    matching AGENTS.md.
  • Book architecture page: adds private-fs, and the Win32 process
    listing as the second sanctioned unsafe module.

Docs only: no binary change, so no CHANGELOG.md entry.

Found while verifying

A zsh user whose ~/.zshenv itself exports ZDOTDIR gets no prompt marks
when TermHerd starts from the Dock or a desktop launcher: sourcing that file
redirects zsh to the user's directory, so TermHerd's generated .zshrc never
runs. Reproduced with zsh 5.9 and the generated files' shape; documented on
the Environment variables page, not fixed here.

Closes #260

… crate no longer deferred

- live-bridge.md: drop the hand-kept "What is still open" table for a
  pointer to the releases, CHANGELOG.md and the area:mcp issue list.
- New Reference pages: Troubleshooting (symptom, cause, fix, linking to
  the page that owns each fact) and Environment variables (what TermHerd
  reads, what a session receives or loses, and what a custom ZDOTDIR
  means for zsh integration).
- New MCP page: Orchestrating sessions, the recipes for one Claude
  session driving others through the live bridge.
- ARCHITECTURE.md: the mcp name belongs to the shipped control surface;
  only the IDE bridge stays deferred, and no IdeBridge port exists. The
  stdio page and docs/agents/mcp.md now point at section 7 for its sketch.
- Book architecture page: add private-fs, and the second sanctioned
  unsafe module.

Closes #260
A new Claude worker is already idle when the open returns, and Claude Code
pads its screen with blank rows, so the default 40-line read can miss the
reply.
@bastien-gallay
bastien-gallay merged commit 3a9518f into main Nov 11, 2026
12 checks passed
@bastien-gallay
bastien-gallay deleted the docs/book-reference-pages branch November 11, 2026 10:12
bastien-gallay added a commit that referenced this pull request Nov 11, 2026
Claude Code pads its screen with blank rows between the conversation and
the input box, so `read_terminal`'s default of 40 lines can hold none of
the reply. A live run while verifying the book's *Orchestrating
sessions* page (#567) read a `PONG` reply as lost until the read was
widened.

The book already carries the rule; this adds it where agents meet it:
the `drive-termherd` skill's observe step and the calling rules in
`docs/agents/mcp.md`. Docs only, no CHANGELOG entry.
bastien-gallay added a commit that referenced this pull request Nov 11, 2026
… .wrap.md (#571)

Wrap of the milestone #567 / #570 / #569.

- **zsh is integrated by default, not always.** The book's status page,
the README and `f-status-notifications` said zsh is always integrated;
#569 is the exception (a `~/.zshenv` that exports `ZDOTDIR`). Each now
names it and points at the book's Environment variables page.
- **README.** The Documentation blurb lists the new book pages; the MCP
section's hand-kept follow-up list (the same kind #567 removed from the
live-bridge page) becomes a pointer to the Orchestrating sessions page
and the `area:mcp` issue list.
- **`.wrap.md`.** Where a wrap of this repo reconciles, its checks, and
what one gets wrong here.

Docs only, no CHANGELOG entry.
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.

crates/mcp has shipped, but ARCHITECTURE.md still declares it deferred

1 participant