Skip to content

[bugfix] assistant: keep composer settings editable during runs - #575

Merged
FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/assistant-pickers-during-run
Nov 29, 2026
Merged

FayeSpica merged 1 commit into
ThinkFlowLab:mainfrom
FayeSpica:fix/assistant-pickers-during-run

Conversation

@FayeSpica

Copy link
Copy Markdown
Collaborator

Summary

Keep the Agent model, skill, and media model pickers available while an Agent reply is streaming. Keep edits in the next-turn draft when the server reports the current turn's completion.

Linked issue

  • No linked issue.

Labels

  • type:bug, area:agent, area:canvas

Test plan

  • Ran TypeScript checking and all 1,031 JavaScript tests on the original fix.
  • Ran an isolated Chromium check in en-US and zh-CN. It held a turn open, changed all three controls, finished the turn, and verified that the new settings persisted.
  • TypeScript checking also passed after rebasing onto upstream main. The broader release matrix is left to CI.

Evidence that it works

The gated Chromium scenario passed in both locales. To reproduce manually, start a reply, change the three composer settings while the stop button is active, and verify that the settings remain selected after completion. No media attached.

Provider verification

  • Browser verification used a model fixture. No real provider calls were made.

Bilingual UI

  • No user-facing copy changed.

## summary

Keep Agent model, skill, and media model controls available while a
reply streams. Preserve next-turn selections and draft content when
applying conversation updates from the active turn.
@FayeSpica FayeSpica added type:bug Something is broken area:canvas Canvas, nodes and direct manipulation area:agent Agent runtime, assistant chat and tools labels Nov 29, 2026
@kunkunblueberry

kunkunblueberry commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

PASS 8caf344

  • Keeps the composer pickers editable while a reply streams, and preserves the user's in-flight edits when the server reports completion: the start event keeps the current selections, the end event replaces only messages.
  • I checked the guard replacement I was least sure about. On main locked is readOnly || !chat.loaded || chat.adding || checkingReferences || (chat.sending && !chat.started), and referenceDisabled is the same list without readOnly but with an unconditional chat.sending. So swapping referenceDisabled for locked on the skills picker loosens only the running case and keeps every other refusal, which is what the change claims. The agent and media pickers move to readOnly, so a preview-mode window still cannot change them.
  • The body says the settings persist after completion, which is the failure this could plausibly introduce; the Chromium run in both locales is the check for it.

Ran: gh pr checks 575 on 8caf344 (13/13); read the full diff and traced locked / referenceDisabled / readOnly on main to confirm the guard is not weakened elsewhere.
Not run: the browser scenario locally.

@FayeSpica
FayeSpica merged commit b993743 into ThinkFlowLab:main Nov 29, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent runtime, assistant chat and tools area:canvas Canvas, nodes and direct manipulation type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants