8000 feat: a plugin shows a thread's chat on its own screen by aorumbayev · Pull Request #169 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

feat: a plugin shows a thread's chat on its own screen - #169

Merged
aorumbayev merged 4 commits into
feat/acp-threadsfrom
feat/acp-embed
Nov 30, 2026
Merged

aorumbayev merged 4 commits into
feat/acp-threadsfrom
feat/acp-embed

Conversation

@aorumbayev
@aorumbayev aorumbayev commented Nov 27, 2026 •
Copy link
Copy Markdown
Member

What

A plugin can draw a thread's chat on its own screen: the full chat, or a compact card with the tone word, the live step, the last answer's first line and Open. Both need the chat area grant.

Why

A plugin that groups threads sent people back to the thread list to read or answer one.

How

The full chat shares the host's box: while the center shows that thread the embed draws the transcript and a Reply in the center button. Compact creates no chat view and reads at most 50 events.

Test plan

  • cargo t -p kg-ui --locked thread_chat (10 tests), the workspace tests, clippy, the scripts and smoke.sh.
  • Isolated app proof of the panel, the reply button and the three compact cards (.plans/acp-threads/proof/pr-b/).

ThreadChat(threadId) draws the host's own ChatView for one thread, and
.compact() draws two lines and Open. The plugin needs the chat area.

One prompt box per thread is on screen: while the center shows the thread,
the embed draws its transcript and a Reply in the center button, and
draft/setDraft answer for the center's box. Escape is CancelTurn on the
chat's own root, Start again sends the embed's own thread, and an embed
never takes the keyboard.

The chat slot's replacement cannot hold a chat, a paint-only overlay
already refuses it, and a panel whose root is the chat fills its frame.
The stopped line and the notice cut on a word instead of running past the
box, and the text area clips at the box's edge. A full chat in a 320-point
right panel no longer paints over the window.
The card, the fold and the box moved across the chat's modules, so the
embed's place, its CancelTurn and Start again are re-applied on the new
shape: the box's focus return is the embed's one skip, and the decision and
budget counts are measured against the newer base.
Only the full form asks for the panel's frame; a compact card is two lines
wherever it is put.
@aorumbayev
aorumbayev merged commit ea5e091 into feat/acp-threads Nov 30, 2026
21 checks passed
@aorumbayev
aorumbayev deleted the feat/acp-embed branch November 30, 2026 02:18
@aorumbayev
aorumbayev restored the feat/acp-embed branch November 30, 2026 02:39
@aorumbayev
Copy link
Copy Markdown
Member Author

Merged into #166.

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

0