Skip to content

fix(desktop): close stuck thinking window after stream interruption (#3893)#3927

Merged
esengine merged 1 commit into
main-v2from
land/3893-stuck-thinking-window
Jun 11, 2026
Merged

fix(desktop): close stuck thinking window after stream interruption (#3893)#3927
esengine merged 1 commit into
main-v2from
land/3893-stuck-thinking-window

Conversation

@esengine

Copy link
Copy Markdown
Owner

Re-lands #3893 by @ashishexee — approved after re-review (all four earlier review points addressed: top-level watchdog effect with lastTokenAt ref and proper deps, controlled reasoning-card open state, focused-card-only ESC, plus the original runGuarded panic recovery with emit-once tests). The branch conflicted with today's #3919 merge.

Conflict resolution: the controlled open state now seeds from item.streaming || defaultExpanded, so the new expand_thinking preference still expands completed cards by default while a stuck streaming card stays user-closable — both features' intents preserved.

Verified locally: internal/control tests pass (including both new panic-recovery tests); touched frontend files parse clean. Author credit preserved.

Closes #3893

Closes #3746

@esengine esengine requested a review from SivanCola as a code owner June 11, 2026 03:41
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) agent Core agent loop (internal/agent, internal/control) labels Jun 11, 2026
@esengine esengine merged commit ef9eae8 into main-v2 Jun 11, 2026
14 checks passed
@esengine esengine deleted the land/3893-stuck-thinking-window branch June 11, 2026 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Core agent loop (internal/agent, internal/control) desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 无法关闭思考窗口

2 participants