Skip to content

desk: human stream fidelity for Grok — decode byte-array tool output, real 1.0.11 fixtures, usage line, model in registry (#5706 PR-B) - #4

Open
chasehuh wants to merge 1 commit into
desk/5706-c-long-sessionfrom
desk/5706-b-formatter
Open

desk: human stream fidelity for Grok — decode byte-array tool output, real 1.0.11 fixtures, usage line, model in registry (#5706 PR-B)#4
chasehuh wants to merge 1 commit into
desk/5706-c-long-sessionfrom
desk/5706-b-formatter

Conversation

@chasehuh

@chasehuh chasehuh commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Implements sumelabs/sume#5706 (desk Grok Build harness at Codex-class long-session resolution). Stacked: A → C → B → D → E; merge in that order (each PR bases on the previous branch). After landing on main: cd ~/.cstack/src && git stash && git pull && git stash drop && ./install.sh --sume-com ~/sume/sume-com (the desk tree has the same Fable 5.1 edits uncommitted; PR-A carries them as its first commit).

What

  • Grok tool results ({"type":"Bash","output":[bytes]}, GrepSearch bytes, ReadFile, Todo, MCP, Monitor) decode to text; run_terminal_command/monitor/target_file render as $ cmd / ⏳ / path lines; 🔧 for tool_use in the Messages wire.
  • Thinking width 160; 📊 turns/wall/api/cost/tokens line; registry end rows carry usage/cost/stop_reason; session rows carry the model from system.init (was null on 712/836 Grok rows).
  • ACP streaming-json per-token deltas coalesced; session id from end; <live>.final.md.
  • Fixtures captured from Grok Build 1.0.11.

🤖 Generated with Claude Code

@chasehuh
chasehuh force-pushed the desk/5706-b-formatter branch from 75b5b3c to eccf012 Compare September 2, 2026 00:31
@chasehuh
chasehuh force-pushed the desk/5706-c-long-session branch from 77ac9ae to aa41b0b Compare September 2, 2026 00:31
… real 1.0.11 fixtures, usage line, model in registry (#5706 PR-B)

- Grok tool results ({"type":"Bash","output":[bytes]}, GrepSearch stdout bytes,
  ReadFile FileContent/FileNotFound, Todo, MCP OkayOutput, Monitor) decode to text
  instead of printing byte arrays.
- run_terminal_command / monitor / get_command_or_subagent_output / spawn_subagent
  and target_file/target_directory render as $ cmd / ⏳ / 🧵 / path lines; tool_use
  blocks in the Messages wire use 🔧 like the ACP path.
- (thinking) width 160 (AGENT_HUMAN_STREAM_THINK_WIDTH), tool output width 200.
- 📊 turns/wall/api/cost/tokens/stop line from result|end; registry end rows carry
  those fields; session rows carry the model from system.init (was null on
  712/836 Grok rows).
- ACP streaming-json: per-token thought/text deltas coalesced into lines; session
  id taken from the terminal end event; tool_call_update output decoded.
- <live_log>.final.md written with the final text.
- Fixtures replaced with shapes captured from Grok Build 1.0.11.

Refs sumelabs/sume#5706
@chasehuh
chasehuh force-pushed the desk/5706-b-formatter branch from eccf012 to f6e0462 Compare September 2, 2026 00:33
@chasehuh
chasehuh force-pushed the desk/5706-c-long-session branch from aa41b0b to c833868 Compare September 2, 2026 00:33
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