Skip to content

components C3b: transcript polish + /thinking toggle - #295

Merged
ericleepi314 merged 1 commit into
mainfrom
components/c3b-transcript-polish
Jun 11, 2026
Merged

components C3b: transcript polish + /thinking toggle#295
ericleepi314 merged 1 commit into
mainfrom
components/c3b-transcript-polish

Conversation

@ericleepi314

Copy link
Copy Markdown
Collaborator

Summary

  • Completes plan §3 (C3a = components C3a: context awareness + custom statusline command #294): compact boundary row (typed end-to-end plumb incl. the legacy-REPL compact branch), ctrl+o expand-last-truncated (legacy _expandable_blocks parity), read-group collapse (≥3 consecutive Read/Grep/Glob rows → one summary row, identity-tracked single ctrl+o stash entry), and a REAL /thinking session toggle (bridge → compat → QueryParams.extended_thinking, honest refusal on unsupported provider/model)
  • Review-driven hardening: result events carry tool_name="" in production — names now derive from the row (the tests use production shapes); boundary/group/expanded rows participate in the post-exit scrollback dump; break-set covers thinking/advisor/assistant/error paths
  • Known cosmetic (QA note): after the first fold the group summary row stays pinned while subsequent running read rows flash below it briefly — closest achievable to TS static-region grouping

Test plan

  • 14 new tests on production-shaped events incl. multi-fold with >limit outputs (one collapsed entry + N surviving content entries), snapshot participation, real _apply_command_result thinking/compact branches, dispatch mapping
  • Full suite BASELINE-IDENTICAL (one transient delta re-verified as the documented prompt-assembly second-boundary flake — 3/3 isolated passes)
  • Impl-critic: two REQUEST CHANGES rounds (inert-in-production collapse, stash flooding, snapshot regression, dishonest thinking enable, break-set gaps) → all fixed → APPROVE

🤖 Generated with Claude Code

Transcript half of plan §3, completing C3:

- compact boundary row: typed plumb (LocalCommandResult "compact" →
  CommandResult → dispatch compact flag → distinct boundary row);
  legacy REPL gained the compact elif so the executed command never
  falls through to re-handling
- ctrl+o expand-last-truncated (legacy _expandable_blocks parity):
  tool results exceeding the panel limits stash full text under the
  ROW's authoritative name — production result events carry
  tool_name="" (review B1; all tests now use that shape)
- read-group collapse: ≥3 consecutive completed Read/Grep/Glob rows
  fold into one summary row; breaks on user/assistant/thinking/
  advisor/system rows, non-read tools, and errors; ONE ctrl+o stash
  entry per group tracked by identity (per-read content stashes
  interleave — the positional guard flooded the deque, review M2);
  boundary/group/expanded rows participate in the post-exit
  scrollback dump via _SnapshotStatic (review M3)
- /thinking session toggle wired REAL: bridge → compat →
  QueryParams.extended_thinking; enable refuses honestly unless the
  provider+model actually support it (explicit True bypasses the
  query gate — review M4); first use disables (TS ThinkingToggle)

14 tests on production-shaped events; suite baseline-identical
(the one transient delta re-verified as the documented
prompt-assembly second-boundary flake, 3/3 isolated passes).
Critic-approved after two rounds. Known cosmetic: after the first
fold the group row stays pinned while later read rows flash below
it briefly — closest achievable to TS static-region grouping.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@ericleepi314
ericleepi314 merged commit a61039f into main Jun 11, 2026
singlaamitesh pushed a commit to singlaamitesh/clawcodex that referenced this pull request Jul 7, 2026
…b-transcript-polish

components C3b: transcript polish + /thinking toggle
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