Skip to content

Flaky: codex-processes 'would take too long' case offers the rollout under load #1965

Closed

Description

@devswha

server/codex-processes.test.ts > "a thread of another folder Codex has loaded, as a resume through the picker leaves it (#896) > offers nothing while weighing another loaded conversation's words would take too long" failed once in a local bun run check fast (unit tests 8 at a time) while the machine was also building the client and running a contract test. Branch feat/opencode-subagents on 7b2422e6a, which does not touch server/codex-processes.ts or its test.

It fails at the last step, the one record longer than is weighed (codex-processes.test.ts:850):

expect(await resolve()).toBeNull();
Received: ".../codex/sessions/rollout-01a16b22-7e1f-7072-8897-d5e46a0d5f1f.jsonl"

So with an 8.5 MB record in the other loaded conversation, the resolver still offered the pane's other-folder rollout. Run alone (bun test server/codex-processes.test.ts -t "would take too long") it passed 3 times out of 3. The case was added in #1941.

Expected: the case gives the same answer however loaded the machine is; if the answer depends on a time budget, the test holds that budget rather than the wall clock.

Activity

  1. added a commit that references this issue on Oct 28, 2026
    c609461
  2. added a commit that references this issue on Oct 28, 2026
    e285541
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