Summary
Compose automation should verify that required X handles appear in AccountSwitcher before focusing the draft. Missing handles after restart currently surface only mid-flow or after failed switch attempts.
Repro
- Context: AccountSwitcher missing one of the expected accounts.
- Steps:
- Open
[data-testid=SideNav_AccountSwitcher_Button].
- Enumerate visible account cells.
- Proceed to compose without checking.
- Observed: switch/login paths fail late;
list_credentials may not help if vault empty.
Code pointers (verified against /workspace/FSB)
extension/site-guides/social/twitter.js — accountMenu: '[data-testid="SideNav_AccountSwitcher_Button"]'.
- Likely area: site-guide helper or content execute_js recipe; vault
mcp/src/tools/vault.ts for credential metadata only.
Proposed fix
Add a preflight that opens AccountSwitcher (or reads known DOM) and asserts configured handles are listed; fail closed if not.
Acceptance / regression
- Missing handle → clear preflight error; present handles → compose allowed.
- No dependency on unpublished internal APIs.
Owner
extension
Priority: P2 · Owner: extension
Summary
Compose automation should verify that required X handles appear in AccountSwitcher before focusing the draft. Missing handles after restart currently surface only mid-flow or after failed switch attempts.
Repro
[data-testid=SideNav_AccountSwitcher_Button].list_credentialsmay not help if vault empty.Code pointers (verified against /workspace/FSB)
extension/site-guides/social/twitter.js—accountMenu: '[data-testid="SideNav_AccountSwitcher_Button"]'.mcp/src/tools/vault.tsfor credential metadata only.Proposed fix
Add a preflight that opens AccountSwitcher (or reads known DOM) and asserts configured handles are listed; fail closed if not.
Acceptance / regression
Owner
extension
Priority: P2 · Owner: extension