Repository navigation
Merge main PR #266 into dev/compat: bounded log sinks and test home isolation - #267
Merged
Merged
Conversation
…not hold the queue On Linux CI a log write's callback never arrived; every later record, flush, Log.init and Log.shutdown queued behind it (FC-008 isolated the bus-integration trigger, but the mechanism inside Bun's file stream is unknown and production shutdown waits on the same queue). A write, open or close that has not settled within writeTimeout (5 s, Log.init option) now stops holding the queue: a stalled write abandons its stream and keeps appending to the same file through a new one; a stalled close destroys the stream. Recorded as FC-054. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bun caches os.homedir() at process start, so the preload's HOME never reached the ~30 production call sites that use it; instruction.ts put the developer's real ~/.claude/CLAUDE.md into test system prompts. The preload now points os.homedir() at the isolated home (FC-008), and fixture-root.test.ts fails without it. That change shifted timing in the full-context MCP frozen-schema cases: the parent session's title request raced the actor for the scripted tool call. An explicit title removes the race (it also failed on main ~1 in 3). The bounded flush in test/lib/effect.ts now reports the first stall per process (a ::warning:: annotation in Actions) instead of showing only as later tests running a second slower. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Append dated follow-ups to the 2026-11-13, -16, -18, -19 and -21 records: their CI acceptance was established on 2026-11-22, and the cases they called pre-existing that were regressions from 2026-11-13 are named. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(log)/test: bound stalled log sinks (FC-054) and isolate os.homedir() in tests
… isolation Inherit FC-054 (a log write, open or close that stops answering cannot hold the log queue) and FC-008's os.homedir() isolation and stall warning. DC-SESSION-001's preload teardown (release() before the data directory is removed) is unchanged; its session-owner suites pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Propagates main PR #266 (
36b51001) intodev/compat:os.homedir()at the isolated home, and the first log-queue stall per process is reported.DC-SESSION-001 lists
test/preload.tsas a harness surface. ItsProcessLiveness.release()teardown before the data directory is removed is unchanged, and a dated review note is added to the compat registry.Validation
packages/clitypecheck passes.log.test.tsandfixture-root.test.ts(27/27), plus the logger, fixture-root, prompt-skill-command-multi, stream-error-log and compat-capture suites and the full-context MCP prompt-effect cases (37 + 7).testis dispatched withwindows_runtime=true, since the preload and file-stream behavior differ on Windows.🤖 Generated with Claude Code