Skip to content

Health check: required handles present in AccountSwitcher before compose #139

Description

@Trace824

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:
    1. Open [data-testid=SideNav_AccountSwitcher_Button].
    2. Enumerate visible account cells.
    3. 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.jsaccountMenu: '[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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions