Repository navigation
Model policy: log the unparseable-settings warning through the server's logger (#768) - #777
Merged
Merged
Conversation
…e that fails to load (#768) Part of #768, item 1, step 1 of "Adding a seam line" (the list only). The settings.json-does-not-parse warning goes through Effect.runSync, the default runtime, so it can miss the server's log. The fix makes afterLoadFailure return an Effect, which changes the existing seam line in serverSettings.ts's load fallback to modelPolicy: yield* ForkPolicy.afterLoadFailure(...). Announced here so the code change may replace the old line (same line count). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e server's logger (#768) Part of #768, item 1, step 2 (after the announce PR merges). fork/modelPolicyFile.ts logged with Effect.runSync, the default runtime, so the warning could miss the server's log. afterLoadFailure now returns an Effect and logs through the load's own logger; the seam line in serverSettings.ts becomes `modelPolicy: yield* ForkPolicy.afterLoadFailure(...)` (same line count), moved from announced to added in fork-seams.json. Test: serverSettings.forkDefaults "the model policy warning for ... reaches the server's logger", with a file cut off half-way, an empty file (warned once, also on a second read), a wrong-typed value and an empty object (not warned). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…log-step2 # Conflicts: # .github/fork-seams.json
This was referenced Nov 21, 2026
scuttletoby
added a commit
that referenced
this pull request
Nov 21, 2026
The squash merge of #777 dropped every HO5 announced line from .github/fork-seams.json. Restore them exactly as they were, inside the same per-file entries as this PR's MCP profile lines (one key per file). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scuttletoby
added a commit
that referenced
this pull request
Nov 21, 2026
…'s logger (#768) (#777) * fork seams: announce the changed model policy line for a settings file that fails to load (#768) Part of #768, item 1, step 1 of "Adding a seam line" (the list only). The settings.json-does-not-parse warning goes through Effect.runSync, the default runtime, so it can miss the server's log. The fix makes afterLoadFailure return an Effect, which changes the existing seam line in serverSettings.ts's load fallback to modelPolicy: yield* ForkPolicy.afterLoadFailure(...). Announced here so the code change may replace the old line (same line count). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Model policy: log the settings-file-does-not-parse warning through the server's logger (#768) Part of #768, item 1, step 2 (after the announce PR merges). fork/modelPolicyFile.ts logged with Effect.runSync, the default runtime, so the warning could miss the server's log. afterLoadFailure now returns an Effect and logs through the load's own logger; the seam line in serverSettings.ts becomes `modelPolicy: yield* ForkPolicy.afterLoadFailure(...)` (same line count), moved from announced to added in fork-seams.json. Test: serverSettings.forkDefaults "the model policy warning for ... reaches the server's logger", with a file cut off half-way, an empty file (warned once, also on a second read), a wrong-typed value and an empty object (not warned). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
scuttletoby
added a commit
that referenced
this pull request
Nov 21, 2026
…'s logger (#768) (#777) * fork seams: announce the changed model policy line for a settings file that fails to load (#768) Part of #768, item 1, step 1 of "Adding a seam line" (the list only). The settings.json-does-not-parse warning goes through Effect.runSync, the default runtime, so it can miss the server's log. The fix makes afterLoadFailure return an Effect, which changes the existing seam line in serverSettings.ts's load fallback to modelPolicy: yield* ForkPolicy.afterLoadFailure(...). Announced here so the code change may replace the old line (same line count). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Model policy: log the settings-file-does-not-parse warning through the server's logger (#768) Part of #768, item 1, step 2 (after the announce PR merges). fork/modelPolicyFile.ts logged with Effect.runSync, the default runtime, so the warning could miss the server's log. afterLoadFailure now returns an Effect and logs through the load's own logger; the seam line in serverSettings.ts becomes `modelPolicy: yield* ForkPolicy.afterLoadFailure(...)` (same line count), moved from announced to added in fork-seams.json. Test: serverSettings.forkDefaults "the model policy warning for ... reaches the server's logger", with a file cut off half-way, an empty file (warned once, also on a second read), a wrong-typed value and an empty object (not warned). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
scuttletoby
added a commit
that referenced
this pull request
Nov 21, 2026
…'s logger (#768) (#777) * fork seams: announce the changed model policy line for a settings file that fails to load (#768) Part of #768, item 1, step 1 of "Adding a seam line" (the list only). The settings.json-does-not-parse warning goes through Effect.runSync, the default runtime, so it can miss the server's log. The fix makes afterLoadFailure return an Effect, which changes the existing seam line in serverSettings.ts's load fallback to modelPolicy: yield* ForkPolicy.afterLoadFailure(...). Announced here so the code change may replace the old line (same line count). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Model policy: log the settings-file-does-not-parse warning through the server's logger (#768) Part of #768, item 1, step 2 (after the announce PR merges). fork/modelPolicyFile.ts logged with Effect.runSync, the default runtime, so the warning could miss the server's log. afterLoadFailure now returns an Effect and logs through the load's own logger; the seam line in serverSettings.ts becomes `modelPolicy: yield* ForkPolicy.afterLoadFailure(...)` (same line count), moved from announced to added in fork-seams.json. Test: serverSettings.forkDefaults "the model policy warning for ... reaches the server's logger", with a file cut off half-way, an empty file (warned once, also on a second read), a wrong-typed value and an empty object (not warned). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
scuttletoby
added a commit
that referenced
this pull request
Nov 21, 2026
The squash merge of #777 dropped every HO5 announced line from .github/fork-seams.json. Restore them exactly as they were, inside the same per-file entries as this PR's MCP profile lines (one key per file). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 tasks
scuttletoby
added a commit
that referenced
this pull request
Nov 22, 2026
… design PR 3, step 1); also restores the HO5 announcement lost in #777 (#807) * fork seams: announce the thread menu's MCP profile lines (MCP profile design PR 3, step 1) List only. The thread menu gets the MCP profile entry: the thread's effective profile, and the owner's pick or clear for a client that may change settings. Its logic and runtime are fork files (apps/web/src/components/fork/mcpProfile/); upstream's menu files need four lines in threadActionMenu.logic.ts and three each in useThreadActionMenu.ts and Sidebar.tsx, announced here. The code is on a branch pushed without a pull request until this merges. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fork seams: also restore the HO5 announcement lost in #777 The squash merge of #777 dropped every HO5 announced line from .github/fork-seams.json. Restore them exactly as they were, inside the same per-file entries as this PR's MCP profile lines (one key per file). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Part of #768 (item 1, step 2). Step 1 was the announce-only PR #773 (merged).
What / why
ForkPolicy.afterLoadFailurenow returns an Effect and logs the "settings file does not parse" warning through the settings load's own logger (the server's), instead ofEffect.runSyncwith a default logger that bypassed the server's log. The policy value it returns is unchanged.Tests
serverSettings.forkDefaults.test.ts: the warning reaches the server's logger (fails on the old code and whenrunSyncis put back).General vs project
General: fork server code; no project facts.
🤖 Generated with Claude Code