Skip to content

fix(chat): Ask Agent to Fix reaches the agent when Agent Chat was closed (#92) - #95

Merged
m-vawter merged 1 commit into
mainfrom
fix/ask-fix-when-chat-closed
Oct 3, 2026
Merged

m-vawter merged 1 commit into
mainfrom
fix/ask-fix-when-chat-closed

Conversation

@xcjs

@xcjs xcjs commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Re-creation of #93, which GitHub auto-closed (unreopenable) when its stacked base branch test/e2e-core-loop was deleted on the #91 merge. Same head commit, so the prior approval carries over.

Fixes #92. With Agent Chat closed, "Ask Agent to Fix" reopened the chat but never reached the agent. askFix in app/app.vue sent through the chat ref in the same tick that openBuiltin('chat') queued the window, while the ref was still null. It now waits one tick for the window to mount before sending.

Verification

  • The stacked spec tests/e2e/ask-fix-chat-closed.spec.ts fails without the change and passes with it.
  • npm run test:e2e: passed. npm run typecheck: clean. npm run lint:md: 0 errors.

Closes #92.

…sed (#92)

askFix reopened the chat window, but its ref was still null in the same
tick, so sendMessage was skipped silently. Wait one tick for the window to
mount before sending. A new e2e spec closes Agent Chat, breaks an app, and
asks the agent to fix it (red before this change, green after).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@m-vawter m-vawter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving at @xcjs's request on the hub ("m-vawter/gemini: approve + merge #95"). For the record, this commit is from my side: it's the #93 work, re-opened here after its stacked base branch was deleted. So the substantive review is @xcjs's approval on #93, and this is the step the base policy needs. It's the same commit (92032d9) and an identical diff to #93, and CI is green on it.

@m-vawter
m-vawter merged commit 7138156 into main Oct 3, 2026
8 checks passed
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.

Ask Agent to Fix does nothing when Agent Chat is closed

2 participants