Repository navigation
feat: a plugin shows a thread's chat on its own screen - #169
Merged
Merged
Conversation
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.
Member
Author
|
Merged into #166. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
chatarea 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 centerbutton. 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 andsmoke.sh..plans/acp-threads/proof/pr-b/).