Skip to content

Give an ended chat no composer - #1099

Open
lezli01 wants to merge 1 commit into
tui-auditfrom
fix/ended-chat-has-no-composer
Open

lezli01 wants to merge 1 commit into
tui-auditfrom
fix/ended-chat-has-no-composer

Conversation

@lezli01

@lezli01 lezli01 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Closes #1054. Merges into tui-audit.

What was wrong

  • A closed, archived or handed-off chat still drew the composer with "enter sends".
  • It accepted typing, then refused enter.
  • It lost the text on leaving, because a terminal chat stores no draft.

What it does now

  • In the composer's place, an ended chat draws a line: this chat is closed and takes no more turns.
  • Under that, it names the keys that still work with it: alt+e export, ctrl+y copy, ctrl+f search, alt+v Markdown. These come from the effective keymap, and an unbound key is left out.
  • A typed key or a paste no longer reaches the composer. The note line says this chat is closed and takes no more turns — nothing typed here can be sent.
  • The send refusal stays as the backstop.

Checks

  • Added a test: the line and keys replace the box, a key and a paste leave the composer empty with the note set, and a live chat still takes text.
  • Updated the guide's chat workspace section.
  • go test ./internal/tui passes and mage lintall is clean.

A closed, archived or handed-off chat now draws, where the composer was,
a line saying it takes no more turns and the keys that still work with
it (export, copy, search, Markdown). Typed or pasted text goes nowhere
and says why, rather than filling a draft that could never be sent and
was lost on leaving.

Closes #1054

This branch has not been deployed

No deployments
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