Skip to content

Clear the OpenTUI transcript on /new and /clear - #439

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-5612-clear-new-transcript-wipe
Aug 9, 2026
Merged

Clear the OpenTUI transcript on /new and /clear#439
TheGreatAxios merged 1 commit into
mainfrom
cl-5612-clear-new-transcript-wipe

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • /new and /clear emit session.clear so the product host wipes the painted transcript (OpenTUI cutover gap; Ink used to clear unconditionally)
  • Live sub-agents are cancelled on rotation so orphans do not keep burning tokens
  • Backend session rotation (new id, agent rebuild, workflow/goal reset) is unchanged

Closes CL-5612

Test plan

  • bun test ./src/tui/product-host.test.ts — includes session.clear wipes the painted transcript
  • Manual: run a short conversation, /clear, confirm screen is empty and "Started a fresh session." lands on a clean transcript; a follow-up turn belongs to the new session

Backend session rotation still ran, but the painted stream stayed on screen
after the Ink App path went away. Emit session.clear from the runner, wipe the
shell log in the product host, and cancel live sub-agents so orphans do not
keep burning tokens under the old session.
@linear-code

linear-code Bot commented Aug 9, 2026

Copy link
Copy Markdown

CL-5612

@TheGreatAxios
TheGreatAxios merged commit 5e5c5ec into main Aug 9, 2026
2 checks passed
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