Disable paste targets in hidden retained chat workspaces
This commit is contained in:
@@ -17,3 +17,19 @@ including when quick-switch makes it inactive while bytes decode. Listener
|
||||
callbacks capture composer identity so decoded files/errors cannot attach to a
|
||||
replacement composer that reuses the State; changing composer rebinds the listener.
|
||||
Regressions cover both retained inactive ownership and stale-completion rejection.
|
||||
|
||||
Retained-workspace follow-up: after Back from a folded wide workspace,
|
||||
Offstage keeps composers mounted. Pane ownership alone did not make paste
|
||||
eligible: `ChatScreen` now additionally requires workspace visibility. Wide
|
||||
visible conversations remain eligible; hidden retained panes leave both text
|
||||
and file paste to the current destination.
|
||||
|
||||
Full-app regression starts wide, selects a chat, folds, returns to the list,
|
||||
asserts the mounted hidden composer is ineligible, and sends native Ctrl+V:
|
||||
zero clipboard reads occur and retapping Chats restores the unchanged draft.
|
||||
Five application tests passed (`/tmp/memwatch/out.YeXKFV`); six existing native
|
||||
paste-routing tests passed in the preceding combined runs. Analyzer clean
|
||||
(`flutter-analyze.Jp8Rwp`). Full-app browser evidence
|
||||
`/tmp/review/hidden-chat-paste-fixed` verifies hidden text/file events are not
|
||||
prevented and the original draft remains on retap; both PNGs were inspected.
|
||||
Script: `/tmp/hidden-chat-paste-capture.json`. No native device or server work.
|
||||
|
||||
Reference in New Issue
Block a user