Skip to content

TUI tests: wait for KV-dependent diff viewer mount with bounded cleanup #839

Closed

Description

@agenteinstinct1-max

Problem

The diff-viewer test helper can start its existing selected-request readiness loop before KVProvider has mounted the viewer. A controlled real 400 ms KV lock reproduces the failure on the current dev-vibecoded base as well as PR #836. This establishes a pre-mount mechanism, not proof that KV latency caused the two Windows CI failures on #836.

Acceptance

  • Observe mounting below KVProvider before starting the unchanged post-mount readiness policy.
  • Bound the new mount phase without raising host or CI timeouts, including an asynchronously pending render.
  • Destroy the renderer once on mount failure and observe any late render rejection without a background poller or extra Bun error.
  • Prove the real KV lock is acquired before rendering and propagate lock-acquisition failures.
  • Keep the existing 10 attempts with 25 ms waits after mounting.
  • Require exact-head CI and independent Kilo or Arena review before merge. Native Windows behavior remains unverified until CI.

The fix belongs in a separate test-harness PR. It does not waive or change the CI gates on #835 or #836.

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