Skip to content

Triage CI for the integrated thread UX draft #1356

Closed

Description

@currentbits

Follow up draft PR #1355 at a9b352c. All three smoke jobs failed; suite jobs were still running at first inspection.

  • Read completed CI failures and distinguish UX regressions from unchanged baseline defects.
  • Have Grok fix any reproduced failures introduced by this work, with targeted verification.
  • Record final CI status and any separate follow-ups; present any new worker landing for approval.

No feature expansion, main merge, or release.

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Sep 24, 2026
  2. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    Smoke triage: all three jobs in PR run 36037741183 fail at passD expected sessionId smoke-codex-sess-1, got null. Unchanged origin/main bd04a85 has the identical failure in run 35837753118, macOS job 107105187052. The PR's runner changes only pass worker titles/prompts into fork creation. No smoke/provider-session code changed. Suggested a separate task for that baseline smoke defect instead of expanding the UX patch.

    The full test jobs are still running. Main's preceding Windows job hit its six-hour cancellation limit, so a Windows pending result alone is not evidence of a new UX hang. Comparing the remaining jobs when their logs become available.

  3. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    Linux job 107761932426 completed: 38 core, 2,629 renderer, 230 memory, and 25 stats checks pass. Electron reports 13 failures / 4,010 pass / 1 skip. The assertion failures match main's preceding run except an afterEach ENOTEMPTY in merge-issue-lifecycle.test.js. Two EPIPE file-level failures also appear on main's macOS run.

    The additional lifecycle failure occurs at fixture teardown, after the behavioral assertions. The fixture, Store, and worktree implementation are unchanged from main. Running that exact fixture from an isolated bd04a85 checkout passes all 10 checks but reproduces async Store writes after tmpDir deletion (ENOENT warnings). Its afterEach never cancels/drains Store writes. A separate cleanup task was suggested; no UX code was changed to suppress baseline failures. macOS and Windows jobs are still pending.

  4. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    macOS finished: all 2,629 renderer checks, 38 core checks, and 25 stats checks pass. Electron has 4,011 pass / 9 fail / 3 skipped; memory has 229 pass / 1 fail. The provider/heartbeat/persistence/spec-mode and memory failures have counterparts on unchanged main. The additional simulator timeout failure is an unhandled rejection in an unchanged fixture: it attaches assertRejects only after advancing timers that reject stopRecording. Suggested a separate focused repair.

    The PR description now includes CI links, exact counts, the baseline comparison, and limitations. No source/test changes were made, no failures were suppressed, and the temporary baseline checkout was removed. No in-scope UX regression was identified in the completed jobs. No Grok implementation worker was needed for unrelated baseline fixes; three separate suggested tasks cover the newly identified work.

    • Compare completed macOS/Linux and smoke logs with main.
    • Record findings and separate repair suggestions in PR Organize worker threads and simplify task navigation #1355.
    • Await Windows suite completion and record its result. It remains in progress; the previous main Windows run reached the six-hour limit. Keeping this tracking issue open and the PR in draft.
  5. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    User explicitly expanded scope to repair CI blockers with Grok workers in separate branches. Continuing this plan instead of creating per-step issues.

    • Repair provider smoke/runner fixtures and child-process cleanup.
    • Repair persistence, valid git fixtures, and deterministic timing/rejection assertions.
    • Repair or precisely resolve Windows suite failures/hang and Linux sandbox/remote fixture failures without weakening security assertions.
    • Review branches together, run relevant checks in isolation and combination, then present landing options for the reviewed fixes.

    Ownership is split across worker branches. No release/main merge or worker landing until review and the appropriate user approval.

  6. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    Grok branches started: t15 provider contracts/process cleanup (5f4f74d8-fe9f-46f8-8125-230e05ec7766); t16 Store/git/timing fixtures (9b63b9f6-cd05-4ac7-9b51-fb14dcbf79fd); t17 Windows/Linux CI (35d12aa0-edf9-4b4e-806e-8b2be2f024aa). File ownership is separated; workers must coordinate shared provider helpers and preserve security/behavioral assertions. Root task t18 will review and verify the combined changes before landing approval. Root is preparing a CI-like provider-absent test environment to avoid local installed CLIs masking failures.

  7. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    t15 (thread 5f4f74d8-fe9f-46f8-8125-230e05ec7766): two demonstrated product defects, editing them before the fixture-only fixes.

    1. electron/runner.js createRunner documents opts.now and calls nowFn() in startRun's lane heartbeat and heartbeatActiveLanes, but never binds nowFn. The throw is swallowed, so lastBeat stays 0 (merge-queue-heartbeat and merge-queue-watchdog: 0 !== 1000). Live lanes never get a beat, so the 30-minute watchdog can recycle a running lane. Fix: bind nowFn from opts.now, else Date.now.

    2. electron/codexJsonRpc.js writes the app-server stdin without an error listener. Claude already swallows this (claude.js: EPIPE from a dying CLI must not crash the main process). Codex hang/shutdown fixtures then report uncaught write EPIPE after the test (codex-writer-lock and codex-eject-stop). Same crash exists if a real app-server exits while Solenta is still writing. Fix: ignore stdin errors, same as Claude.

    Smoke pass D stays a fixture change: the fake still emits exec JSONL and exits 0, so the app-server turn finishes with sessionId null. The fake will speak thread/start for the root id smoke-codex-sess-1 only, with no child thread/started. Session capture in runner.js is unchanged.

  8. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    t16 fixture repairs are on coder/fork-this-is-a-persisetent-issue-when-us-9b63b9 at e6c6e034. Test-only. No Store or memory production change, and the lead-snapshot guard is unchanged.

    • Store round-trip: migrateThread always materializes messagePins: []. The cascade test now seeds a real setRewindRestore snapshot; an empty rewindRestoreByThread is valid.
    • merge-issue-lifecycle: afterEach calls saveNow() then flushPending() before rmSync. Three local reruns, no ENOTEMPTY and no async flush ENOENT.
    • spec-ipc: the isolated repo now has one commit, so dispatchSpec can record the lead HEAD.
    • ios-simulator: both finalize-timeout tests attach assertRejects before timers.advance. Full file 225/225, including SIGKILL and empty artifacts.
    • memory trust: rank_decay calls Date.now per expression. A 1ms tick is 0.995^(1/86400000) = 0.9999999999419845. The NULL-agent test freezes that clock and still requires strict equality with agent_trust(NULL) === 1. trust.test.js 9/9.

    Not run: the rest of the electron suite, Windows, or provider fixtures (other owners).

  9. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    Independent local baseline completed on unchanged a9b352c under Node22.23.2, with provider CLIs absent and inherited CODER_* removed from the child test environment: 4,012 pass / 7 fail / 3 skip across 4,022 Electron checks. The seven failures reproduce the assigned Claude keep-alive, two heartbeats, generic overflow, spec git HEAD, and two Store fixture failures. The CI-only races/platform failures remain covered by their original logs.

    Two earlier attempts were discarded: one hit the execution sandbox's localhost restriction; another inherited the live CODER_GUARDRAILS_PATH and produced false guardrail failures. The valid test environment uses only fixture-specific MCP isolation settings. No live guardrail setting was changed.

    Initial worker evidence: the smoke fake uses the obsolete Codex JSONL protocol; production now expects an app-server handshake. Provider worker also found the missing nowFn binding in lane heartbeats and is verifying a small production correction. Root requested a focused JSON-RPC EPIPE regression that proves pending requests settle, in addition to preventing unhandled errors.

  10. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    Clean provider-absent baseline (/tmp/solenta-ci-review-baseline-electron.log) is 4,012 pass / 7 fail / 3 skip. Three of those failures are the t16 fixtures, already fixed at e6c6e034:

    • spec-mode IPC threads:dispatchSpec (lead has no committed HEAD)
    • Store round-trip (messagePins: [])
    • Store removeThread (rewindRestoreByThread)

    The other four are provider-runner failures (Claude keep-alive, both #346 lane heartbeats, real-agent overflow metadata).

    Re-checked the three fixture tests after removing every inherited CODER_* variable, including live CODER_GUARDRAILS_PATH, then setting only CODER_GROK_MCP_DISABLE=1, CODER_CURSOR_MCP_DISABLE=1, and CODER_KIMI_MCP_PATH=/tmp/solenta-ci-worker-kimi.json. 4/4 passed.

  11. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    t15 done on coder/fork-this-is-a-persisetent-issue-when-us-5f4f74 @ 41d39bc8. Not merged, no PR.

    Product (notified before edit):

    • runner.js binds opts.now as nowFn. Lane heartbeats were throwing inside try/catch, so lastBeat stayed 0 and a live lane could look wedged.
    • runner.js sweepCrew archives an idle worker only after it has run (stoppedAt, sessionId, or a transcript). A fresh fork stayed idle and was archived when the lead turn ended, so the Claude keep-alive eject test never started the worker.
    • codexJsonRpc.js ignores stdin errors. Hang-fixture shutdown was an uncaught write EPIPE. Same guard Claude already has.

    Fixtures:

    • smoke pass D fake speaks app-server JSON-RPC and returns only root id smoke-codex-sess-1 (no child thread/started). Local smoke exited 0; passD sessionId is that id.
    • overflow test sets CODER_CLAUDE_BIN to an existing executable so CI reaches worktreeBase is not configured. Confirmed with CODER_CLAUDE_BIN=/no/such/claude.

    Checks: claude-eject-keepalive, merge-queue-heartbeat, merge-queue-watchdog, codex-writer-lock, codex-eject-stop (no EPIPE), orchestrator-threads, codex-jsonrpc, codex-appserver, crew-notices, runner.test.js (the idle-sweep case updated and re-run). Full electron suite and Windows were not re-run.

    Left alone: child thread/started can still replace a Codex sessionId. Capture logic was not changed.

  12. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    t17 (35d12aa0) on coder/fork-this-is-a-persisetent-issue-when-us-35d12a @ 0b18726e.

    Windows hang (baseline log /tmp/solenta-main-test-windows.log, commit bd04a85): electron TAP's last suite is cursor runner integration at 08:37:50Z. Two cursor afterEach hooks failed EBUSY rmdir on coder-cursor temp dirs. No subtest was left open. The job was silent until GitHub's 6-hour cancel at 14:33Z (6 orphan node.exe). Cause: cursor.test.js keep-alive fakes (setInterval 1h at lines 89 and 395) survive Windows .cmd kill, so the test worker never exits and later WIN32 files never start. Did not edit cursor.test.js, proc.js, writeFakeBin, or writer-lock (other workers). Win32 scripts/test-electron.js now passes --test-force-exit after tests and hooks. .github/workflows/test.yml test job timeout-minutes: 25 (healthy Ubuntu ~6 min, macOS ~10). Not executed on Windows. EBUSY failures remain failures.

    Linux codex git sandbox: bwrap RTM_NEWADDR happens before git, so index.lock is absent. On that error only, the same proof reruns with --enable use_legacy_landlock. writable_roots are unchanged. macOS seatbelt cases passed (codex 0.154.0): standalone and linked worktree. Landlock path not run here.

    Muse ssh auth.json ENOENT: fake ssh inherited host XDG_CONFIG_HOME, so the overlay script did not link $HOME/.config/muse/auth.json. Reproduced locally by setting XDG_CONFIG_HOME and XDG_DATA_HOME. Fake remote now deletes those host XDG vars. electron/test/muse-guardrail-remote.test.js 10/10 with those vars set.

    services.test.js gitStatus SSH assertion passed on the macOS and Ubuntu main and PR logs and locally. No edit.

    Not merged.

  13. currentbits commented on Sep 24, 2026

    @currentbits
    OwnerAuthor

    Independent review of fixture branch e6c6e034 passed: 347 tests across Store, merge issue lifecycle, spec IPC, iOS simulator, and memory trust. Tested as an uncommitted patch in a detached scratch checkout with inherited CODER_* settings removed and real provider CLIs excluded. No async teardown/rejection warnings; the trust broken-handle diagnostic is deliberate. Changes preserve production normalization, snapshot protection, and ranking behavior. Provider and platform repairs remain in progress; no worker branch has been landed.

  14. 54 remaining items

  15. currentbits commented on Sep 25, 2026

    @currentbits
    OwnerAuthor

    Windows job 108204293787 (head 94846ab) completed in under 8 minutes. The remaining failures in the owned Electron files are not a return of the 6-hour hang.

    EBUSY rmdir of the provider cwd: Node 22 rimraf throws EBUSY from the first rmdir and does not apply maxRetries there. codex.test.js already passed maxRetries 10 and still failed. The app-server steer test called kill() then rmdir while shutdown was still awaiting unsubscribe, so the steer-wait process still had the directory. Cleanup now retries the whole removal and still throws if the lock outlives the budget. The steer test waits for onExit first.

    OpenCode folder assertion: -f paths arrived intact and the prompt included look at these, but not - Folder: which is written after a newline. The fake was a .cmd whose %* line is cmd.exe. writeFakeBin now returns the shebang script so cross-spawn launches node.exe with the original argv.

    Grok closed === true at exit: Solenta's child was cmd.exe, so the node grandchild did not hold that child's pipes. POSIX still requires close to stay false. Windows still requires the follow-up to be committed.

    Central taskkill /T /F is unchanged. No parent-only kill, Cursor latch, or --test-force-exit.

    Commit 139ebf3e on coder/repair-remaining-windows-process-teardow-b87d7f. Not pushed. macOS node --test of the named files: 108 + 125 pass. That is not a Windows pass. No Windows runtime was available to re-run job 108204293787.

  16. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    The signed-off Linux home fix is pushed at 00842af2166c00ec74abd9ec1960dc371b1d3f76; PR #1355 points at that exact head. Hosted CI completed.

    • All three smoke jobs pass.
    • Ubuntu passes: renderer 2,630; backend 4,027 pass / 0 fail / 1 skip; memory 230. The previously failing Linux setup is fixed on the hosted runner.
    • macOS passes: renderer 2,630; backend 4,025 pass / 0 fail / 3 skip; memory 230. The prior Claude cleanup timeout did not reproduce.
    • Windows completes: renderer 2,630 passes; backend 790 pass / 19 fail; memory 220 pass / 10 fail. Core 38 and stats 25 pass on all platforms.

    The remaining two Grok repair workers are still active and have the new Windows evidence. Many earlier EBUSY failures passed this run, which confirms intermittency rather than disproving the teardown race. No new branch has been landed. PR stays draft; plan stays doing until the remaining Windows failures are repaired and verified.

  17. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    Review of the two completed Windows repair branches found corrections required before a landing choice:

    • 5a83a537: the replacement which.cmd fixture still runs through raw execFileSync, which cannot execute a Windows command script. More importantly, a real-socket probe reproduced a new fallback listener leak: occupied initial port + directory as configFile causes EISDIR rejection while the replacement server stays listening. Requested a close-on-persistence-failure fix with a regression.
    • 139ebf3e: Node 22.23.2's async rimraf already retries initial rmdir EBUSY at its top level. Requested fs.promises.rm with bounded retries instead of a custom synchronous Atomics.wait loop. Also requested retaining Grok's descendant-held-pipe assertion on Windows after replacing the old .cmd fixture with direct shebang launch; the old wrapper evidence does not justify weakening the new fixture's assertion.

    Both workers have been resumed for these bounded follow-ups. Neither branch is merged or pushed. Existing ownership stays disjoint; all hosted green results remain at 00842af2.

  18. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    Both Grok review follow-ups stopped with API 402, usage balance exhausted, before changing their frozen commits. I am completing the already-requested bounded review corrections on their existing, separate worker branches; neither is merged or pushed.

    The cleanup correction now awaits Node's built-in asynchronous rm retries throughout the affected hooks and restores the Grok descendant-pipe assertion on every platform. All 220 targeted provider/cleanup checks passed in the scrubbed macOS environment. The other branch now closes its fallback listener if config persistence fails, includes a regression for the reproduced leak, and tests the platform cache using the existing Node mock/module-cache pattern instead of an unexecutable which.cmd. Its targeted checks are running. Native Windows execution still requires the next hosted CI run after landing approval.

  19. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    Both review follow-ups are complete on the original worker branches, still unmerged/unpushed:

    1. coder/repair-windows-path-and-platform-ci-cont-b504cf at f68d767b (on 5a83a537). Keeps the Windows path/migration, orphan, port-fallback and platform fixture fixes; replaces the invalid which.cmd fixture with a mocked subprocess boundary that proves distinct platform cache entries for the same binary/PATH. Failed persistence now closes the replacement listener, retains the original config port, and propagates the original error. A real-socket regression covers that failure.
    2. coder/repair-remaining-windows-process-teardow-b87d7f at 7d7880f1 (on 139ebf3e). Keeps shebang fakes that preserve multiline argv and the explicit app-server exit wait. Uses a small fs.promises.rm wrapper with bounded built-in retries, awaited by every affected cleanup hook. The Grok descendant-held-pipe assertion is restored unconditionally. No production process-kill changes, force-exit, or latch.

    Verification: 220 provider/cleanup checks passed. All 77 affected platform checks passed across the original run and the corrected core/dist-link rerun. The memory suite, run from its package directory, passed 232 of 233; the sole failure was an invalid new test assertion that Node HTTP has zero listening callbacks (its built-in setupConnectionsTracking persists). Removed that unrelated assertion, preserving socket-closure/config/error assertions; the entire server test file then passed 17/17. The other 216 memory checks were already green. Initial harness failures (wrong memory cwd, missing core/dist) are excluded from product findings. Logs: /tmp/solenta-cleanup-review-targeted.log, /tmp/solenta-platform-review-electron.log, /tmp/solenta-platform-review-electron-fixed-env.log, /tmp/solenta-platform-review-memory-fixed-env.log, /tmp/solenta-platform-review-server-final.log.

    Both worktrees are clean, git diff --check passes, and the branches modify disjoint files. No workflow change in either branch. Native Windows execution remains pending after approved landing/push. Proposed order: platform/memory, then cleanup, targeting codex/thread-worker-ux; main and PR #1355 remain unmerged.

  20. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    User approved merging both reviewed follow-ups. Landed via thread_merge in the approved order on codex/thread-worker-ux:

    1. Windows platform/memory: f6c1a254, reviewed worker f68d767b.
    2. Provider fixtures/cleanup: 448326cc, reviewed worker 7d7880f1.

    Verified all 28 changed files match the two reviewed commits byte-for-byte, their file sets are disjoint, and the signed-off Linux workflow fix at 00842af is retained exactly. git diff --check passes. The existing untracked .worktrees/ directory was left alone. Publishing the combined head for hosted CI; PR #1355 stays draft and main remains unmerged. Prior local checks apply to these unchanged merged files; no redundant local full-suite rerun.

  21. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    CI at the merged head 448326cc completed: Linux and macOS test jobs pass; all three smoke jobs pass. Windows now passes 808/809 backend tests and all 233 memory tests (plus renderer 2630, core 38, stats 25).

    The only Windows failure is electron/test/grok.test.js:670, holds follow-ups until result, then drains them while descendant stdio stays open: closed is already true. This is now hosted evidence with the direct-node shebang fixture, not the earlier command-wrapper fixture. Investigating that remaining test's actual descriptor inheritance before deciding whether its contract needs a platform distinction. No other failure remains in this run. PR #1355 stays draft; main unmerged.

  22. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    The one remaining Windows failure at 448326c is in the Grok background-pipes fixture. Its fake CLI spawns a non-detached Node child, then exits, while asserting that the descendant retains stdout/stderr. Pinned Node v22.23.2 libuv source assigns non-detached children to a job with KILL_ON_JOB_CLOSE, so the fixture's parent exit kills the sleeper on Windows; unref does not change job membership.

    Source: https://github.com/nodejs/node/blob/v22.23.2/deps/uv/src/win/process.c#L69-L98 and https://github.com/nodejs/node/blob/v22.23.2/deps/uv/src/win/process.c#L1082-L1104

    Applying a fixture-only correction: detached on win32 for that sleeper, preserving inherited stdout/stderr, the stop-file cleanup and timeout, and the unconditional close assertion. Native Windows verification will come from the next hosted run; this is the source-backed diagnosis, not yet a Windows pass.

  23. added
    plan:doing
    and removed
    plan:done
    on Sep 26, 2026
  24. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    Final verification: https://github.com/currentbits/solenta/actions/runs/36245659940 succeeded at pushed commit bfb7276. All six full-test and smoke jobs passed across Windows, Linux and macOS.

    Native Windows job 108414261565 passes the previously failing Grok descendant-pipe assertion: 809 backend, 233 memory, 2,630 renderer, 38 core and 25 stats tests, zero failures. The final fixture-only fix detaches its Windows sleeper from the parent's libuv job, preserving inherited stdio, stop-file cleanup and the unconditional close assertion. Local Grok checks passed 14/14.

    Both approved workers landed in order at f6c1a25 and 448326c. PR #1355 records this evidence and remains a draft; main is unmerged.

    A separate Cursor-coauthored local commit 71b8c80 appeared after the hosted run finished. It is outside the verified/pushed head and was left untouched; these results do not cover it.

  25. added
    plan:done
    and removed
    plan:doing
    on Sep 26, 2026
  26. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    Reviewed the late worker notices. The Grok report refers to 448326c; the subsequent fixture fix bfb7276 already passed all six hosted CI jobs.

    The platform worker confirms ownership of local commit 71b8c80. Its advertised listener fix is redundant with the approved, landed f68d767b implementation: I ran the new real-directory EISDIR regression from 71b8c80 unchanged against the green bfb7276 production code, and it passed, including refusal of connections to the closed fallback port. Its closeServer helper comment is also incorrect: Node22.23.2 calls server.close(callback) with ERR_SERVER_NOT_RUNNING for an unstarted server.

    Recommendation: revert only the extra local 71b8c80 commit, retaining the already-green implementation and the original commit in history. It has not been pushed; waiting for a decision on that extra worker commit. No change to the approved merges or green remote head.

  27. currentbits commented on Sep 26, 2026

    @currentbits
    OwnerAuthor

    User approved reverting only the extra local worker commit 71b8c80. Reverted it as 9781c01, preserving both commits in history.

    Verified the entire tracked tree is identical to the green hosted CI revision bfb7276: both tree hashes are caa9da7b86a06957d9658f181a5a6011a441fedd; git diff --exit-code bfb7276 HEAD and git diff --check pass. No redundant test rerun. Approved repairs remain intact; existing untracked directories were untouched.

    The extra commit and its revert remain local. The published branch stays at bfb7276 with all six CI jobs green.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions