- hx -p --schema <file> validates the final answer against a JSON schema,
with one retry that includes the validation errors
- max_turns config key and --max-turns cap the main agent's model calls
- hx --mode rpc --ask sends permission requests to the client instead of
auto-allowing bash/write/edit calls
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- claude -p runs in its own process group; dropping the stream kills the group (its Bash children survived kill_on_drop)
- reader task stops when the stream is dropped
- exit_plan/AskUserQuestion race the question against abort
- TUI clears choose/doc/perm popups when a run ends
- fix abort_during_tool_round test (tu() always built echo calls, slow never ran)
Race the tool round against abort, check abort before starting tools,
answer pending calls with an aborted result, deny permission prompts on
abort, and kill the bash process group on drop.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Replace bare string with Editor in choose.rs typing input
- Support ←/→ (left/right arrow keys) for cursor movement
- Add Home/End, ctrl-a/ctrl-e, Delete, Up/Down between lines
- Keep ctrl-w (kill word), add ctrl-u (kill line)
- Render cursor marker ▏ at actual position in multi-line answers
- Update help text to mention cursor movement
- Add test: type, move cursor, insert character mid-text
Also: delete 4 comment lines from scripts/lint-comments.sh (tautology).
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Classify every comment as tautology, stale, excuse or decision record.
Tautology/stale/excuse comments are deleted (excuses filed as issues
#196-#236), decisions moved to docs/adr/0001-0034.
- scripts/lint-comments.sh + .comment-baseline: per-file comment count
may only go down; wired into tests/all.sh
- .claude/skills/delete-comment: repeatable audit workflow
- cargo fmt applied to touched crates
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- ToolResult carries images; agent attaches them after tool results; read returns real images
- inner codemode calls reported as Info notices via State::nested
- searchTools/ALL_TOOLS/describeNamespace, tools.x.json/.raw, exit()
- store()/load() across calls, max_output_tokens, 2-script concurrency cap
- script ends when settled; unawaited calls cancelled; failure lists calls made
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Tables are drawn as box-drawn grids that wrap to the terminal width,
falling back to header: value lists when too narrow.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- serve --acp applies --yolo / --auto (or `permissions` in config.toml)
like the TUI; before, every edit and command went to the orchestrator.
- claude no longer asks to run outside the sandbox. With the sandbox on it
stays confined; only a stored `claude:unsandboxed` rule or
--no-claude-sandbox lets it out, and yolo never does.
- The sandbox reads the files the global git config includes and may stat
$HOME and the directories above allowed paths and includeIf gitdir
paths (metadata only). git died on both before.
- hx mcp-serve logs a failed start to $TMPDIR/hx-mcp-serve.log; claude
hides its stderr and only reports "mcp__hx__approve not found".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The seatbelt profile hides $HOME, and claude_extra did not bring back
~/Library/Keychains. On macOS claude keeps its OAuth login there, so a
sandboxed claude failed with "Not logged in" and the only way out was
to let it run unconfined.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JSON-RPC on stdio with permission requests, hx/step|message|interrupt|compact
in and hx/step_result|intent|edit|usage|decision|plan out. Sessions persist by
id. Limits are soft: a limit stop is blocked with reason "limit" and no catch;
catch is only a validated name from the step's catches list.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Descriptions with an unquoted ': ' (e.g. floorplan) failed strict YAML and
the skill was silently dropped. Read single-line known keys instead; skills
with no recognised key are still skipped and reported in /skills.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
claude -p defaults to thinking display 'omitted' on new models, so the
thinking text was empty and the TUI showed 'thought · 0 words'. Pass
--thinking-display summarized (verified on claude 2.1.295) and drop empty
deltas.