Fix #57: oversized prompts ride in a file, not on the typed command line - #58
Merged
Conversation
A multi-KB goal was typed into the new session's PTY, and a tty in canonical mode drops everything past MAX_CANON (1024 bytes): the tail was eaten mid-word, the shell parked at an unsubmitted continuation prompt, and no backend process ever existed while the node read running (issue #57). The overflow ladder previously had one rung — drop the briefing — and returned that command unchecked, so a prompt that was itself past the budget still went out corrupt. Now the prompt moves to PROMPT.md beside the node's wake digest, the typed line carries only a short ASCII pointer, and the briefing no longer needs to be sacrificed to make room. The file keeps the prompt's newlines, which the typed line always had to flatten. Path-verifying backends get the directory granted, and a remote node's copy rides the same installer the briefing and wake digest already use. Fixes #57 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JbG2Xd7tX1dYPhFxjiabUu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #57
A multi-KB
--goalwas typed into the new session's PTY and macOS canonical-mode input capped the line at ~1KB: words dropped mid-string, the shell parked at an unsubmitted continuation prompt, no backend process ever existed while the node readrunning.The launch path's overflow ladder had one rung — drop the briefing — and returned that command unchecked, so a prompt that was itself past the typed-line budget still went out corrupt. Now:
PROMPT.mdbeside the node's wake digest and the typed line carries only a short ASCII pointer.--add-dir); Claude Code needs nothing extra.Tests: 3 new in
ZmxSessionLauncherTests, 1 rewritten inSessionBriefingTests(it previously pinned the corrupt-prone fallback).🤖 Generated with Claude Code
https://claude.ai/code/session_01JbG2Xd7tX1dYPhFxjiabUu