Skip to content

Flaky: the secret-input browser check times out waiting for the password field to go away #242

Closed

Description

@devswha

What fails

scripts/secret-input-regression.ts (run by scripts/ui-regression.ts in the "Integration and browser" CI job) timed out once on 2026-10-01:

88 |     await field.waitFor({ state: "detached" });
TimeoutError: waitFor: Timeout 10000ms exceeded.
  - waiting for getByLabel('Password or PIN', { exact: true }) to be detached
    24 x locator resolved to visible <input class="input" type="password" ...>

After Send in the secret input, the password field stayed on screen for the whole 10 s.

How often

Once, on PR #235 (run 36833457302, commit 4409103). A rerun of the same commit passed, and the PR does not touch the secret path. Not reproduced locally yet.

Where to look

The field goes away when the server answers secret-result ok and the client's next screen check no longer finds a password prompt (secretPrompt over the xterm buffer in PaneTerminal.tsx). Candidates: the secret frame refused with pane_busy or prompt_changed while the fixture's prompt was still being drawn, or the fixture program not consuming the secret so the prompt stays on screen.

Reproduce

bun run build && bun scripts/ui-regression.ts in a loop; the failing step logs "Password or PIN".

Activity

  1. added a commit that references this issue on Oct 1, 2026
    3591a04
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