Repository navigation
fix(content): no random agent failures, a run still finishing isn't called failed, and fan-out rules match real headings - #2390
Merged
gkhngyk merged 1 commit intoNov 13, 2026
Conversation
…alled failed, and fan-out rules match real headings Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
gkhngyk
approved these changes
Nov 13, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Small follow-up: when the outcome comes back null after FIX_WAIT_MS, stillFinishing stays true with no further poll, so a run that really failed shows 'Still finishing…' until reload.
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
Fixes three Content Editor problems:
NoObjectGeneratedError, and the whole run was lost.keepSuggestionsalready keeps only the first 8.The owner allowed the changes in the editor folder for this work.
Changes
Server, suggestions schema: the array no longer has a zod
max. The limit is still told to the model in the description ("at most 8 items"), andkeepSuggestionstrims the answer to 8.Editor, lost answer:
Fan-out matching: a new matcher,
lib/content/fanout-match.ts, is used only bycarries()for the fanoutH2 and fanoutFaq rules. It adds:Known trade-off: with three key words, two are enough, so "home espresso grinder" would also count an H2 "Home espresso machines". Leaning lenient here stops the rules from staying at 0 on headings people accepted.
The shared
wordsOfis unchanged; its stop-word list is now exported so the matcher can use it.Rules tab: the fanoutH2 and fanoutFaq rows list the fan-outs still missing: the first three, then "+N more". This is a small, local change in
RuleRow.Strings: the new strings are in
web/messages/en.json.Help: "Write to the Content Editor rules" now explains the missing fan-out list, how a heading counts as using a fan-out, and "Still finishing…". The Help index is regenerated.
How to test
servertestscontent-agentandstructured-output.fixDraftRulestime out on the way back. One way is to throttle the network so the server action call is cut off.Checks
page.test.tsx, on a line this change doesn't touch.src/lib/content, the editor folder,use-server-exportsand Help: 131 files, 1747 tests, all pass.content-agentandstructured-output: 123 tests, all pass.editor-eval(it uses the schema): passes.Generated by Claude Code