Skip to content

agentHost: Windows E2E intermittently loses archive/read flags after host restart #338063

Open

Description

@TylerLeonhardt

Observed behavior

The shared Agent Host E2E test archiving a never-restored session survives a host restart failed in two Windows / Electron attempts on the same commit of #337626, with different providers. The test changes archive/read flags without restoring the session, waits for the root summary notifications, restarts the host, and verifies that both flags persisted.

Attempt Provider Expected after restart Actual after restart
1 Claude { restored: true, isArchived: true, isRead: true } { restored: true, isArchived: false, isRead: false }
2 Copilot { restored: true, isArchived: true, isRead: true } { restored: true, isArchived: true, isRead: false }

Claude passed on attempt 2. Conformance and Codex passed in both attempts. These failures did not involve a replay cache miss or model-response mismatch.

Reproduction and investigation

  • Tested commit: 875390b33d99bf12da168afbd999b23987c49a02.
  • Shared scenario: sessionPersistenceSuite.ts.
  • The exact Claude scenario passed six local runs on macOS. Fourteen related passive-metadata/shutdown unit tests also passed.
  • The SDK PR does not change the shared persistence implementation or this test. The cross-provider failure suggests a shared persistence, shutdown, or listing issue rather than a Claude-only regression, but the root cause is not established. No upstream-only reproduction has been obtained.
  • Local metadata persistence precedes the root notification; central catalog synchronization follows asynchronously. Existing unit coverage verifies that shutdown drains published passive metadata writes. Any fix should preserve the existing responsiveness and durability contracts.
  • The failed Windows job logs did not include an Agent Host failure log tail, and no Windows Electron log artifact was available. Better Windows diagnostics may be needed to distinguish lost writes from stale listing state or interrupted shutdown.

Keeping this investigation separate from the Claude SDK upgrade. No assertions have been weakened, timeouts raised, or tests skipped to unblock that PR.

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added and removed
    bug
    on Sep 25, 2026
  3. added
    agent-host
    on Sep 25, 2026
  4. TylerLeonhardt commented on Sep 25, 2026

    @TylerLeonhardt
    MemberAuthor

    Update: Windows / Electron attempt 3 passed on the same commit without code changes. This confirms the observed CI failure is intermittent; the underlying persistence issue remains unresolved and this issue remains open.

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

Metadata

Metadata

Assignees

Labels

agent-hostflaky-test

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions