DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

[codex] Reuse main TUI surface for BTW

Open taibai233 opened this issue 5 months ago • 0 comments

Summary

  • Replace BTW's side-only TUI renderer with the shared conversation surface used by the main session.
  • Route BTW text, reasoning, tool output, usage, notices, compaction, and turn completion through the same event renderer.
  • Keep main-only UI affordances behind surface capability flags, and update tests around BTW input, side events, and completion behavior.

Why

BTW had a separate transcript and renderer path, which made it behave very differently from the native main session. Reusing the main surface keeps the UI behavior consistent and removes the duplicate side renderer.

Cache impact

Cache-impact: low - touches agent/boot wiring for BTW side-session rendering, but does not change model cache key construction, prompt text, tool schema generation, history serialization, or cache persistence. Cache-guard: GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod-cache go test -count=1 ./internal/boot -run 'TestBuildWiresSideFactoryAndSink|TestBuildSideAgentHasNoBackgroundJobs' plus ./internal/agent focused tests cover the affected wiring boundaries. System-prompt-review: Codex/taibai233 reviewed boot prompt-sensitive wiring in this PR; the change adds side factory/sink plumbing and tests, with no intended system prompt wording change.

Validation

  • GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod-cache make build
  • GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod-cache go test -count=1 ./internal/cli
  • GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod-cache go test -count=1 ./internal/control
  • GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod-cache go test -count=1 ./internal/agent -run 'TestPlanMode|TestSideReadOnly'
  • GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod-cache go test -count=1 ./internal/boot -run 'TestBuildWiresSideFactoryAndSink|TestBuildSideAgentHasNoBackgroundJobs'
  • GOCACHE=/tmp/go-cache GOMODCACHE=/tmp/go-mod-cache go run github.com/golangci/golangci-lint/v2/cmd/[email protected] run --timeout=5m
  • git --no-optional-locks diff --check

taibai233 avatar Jun 25 '26 05:06 taibai233