Skip to content

Fix Ask panel dismissal across browser windows - #171

Merged
kahme247 merged 1 commit into
ompweb-dev:mainfrom
andrebrait:fix/sync-answered-dialogs
Oct 1, 2026
Merged

kahme247 merged 1 commit into
ompweb-dev:mainfrom
andrebrait:fix/sync-answered-dialogs

Conversation

@andrebrait

Copy link
Copy Markdown
Collaborator

Summary

  • broadcast a synthetic cancel when any browser answers a pending extension dialog
  • preserve the answering tab's short hand-off between sequential Ask questions
  • cover cross-tab dismissal and local hand-off behavior

Verification

  • npm test (907 tests, 903 passed, 4 skipped)
  • npm run typecheck
  • npx eslint lib/rpc-manager.ts lib/rpc-manager.test.mjs hooks/useAgentSession.ts hooks/useAgentSession.rpc.test.mjs
  • isolated two-window browser smoke: the non-answering window dismissed its Ask panel after the response reached the live API

@andrebrait
andrebrait force-pushed the fix/sync-answered-dialogs branch from 9c81758 to 4ddd488 Compare October 1, 2026 00:15
@kahme247
kahme247 merged commit dbfe81a into ompweb-dev:main Oct 1, 2026
3 checks passed
kahme247 added a commit that referenced this pull request Oct 1, 2026
…erge

Resolving #171 against #88 kept #88's hardened respondToExtensionUi (timer
only on success, error notice) but dropped #171's locallyAnsweredDialogRef
assignment, so the synchronized-cancel guard could never match and the
answering tab lost its 250ms hand-off window. Set the ref before awaiting
and clear it in the hand-off timer.
@andrebrait
andrebrait deleted the fix/sync-answered-dialogs branch October 2, 2026 15:30
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.

2 participants