Repository navigation
Conversation
Ultimate-Conversation: 9249
Owner
|
Thanks for this, and for the careful tests. On our side summaries already recover on the next reply, and our own history shows no summaries lost to provider errors or truncation (every discard here is a superseded or stale one, which retries rightly skip), so a retry state machine plus a stale marker is more machinery than the core needs right now. We're keeping this open as a |
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.
Fixes #282
Problem
When a conversation summary request fails transiently (provider error, timeout, malformed JSON) or hits
stopReason: 'length',SummaryTaskimmediately marks the summary status aserror, appendsconversations.summary-discarded, and terminates without retrying. The conversation keeps its previous summary/abstract until a later reply succeeds, leaving readers with out-of-date context.Changes
SummaryTask(extensions/conversations/summary.ts):SUMMARY_RETRY_DELAYS_MS = [2_000, 10_000]) using durable Pi Durablesleepingtransitions (attemptin checkpoint) and per-attempt response/reply memo keys (response,response:1,response:2) so failed responses are not replayed and usage is accounted once per attempt (also across aborts and restarts).maxTokensonstopReason === 'length'(clamped tomodel.maxTokens) so reasoning + abstract JSON responses that truncate at the default 2048 output budget can succeed on retry.SummaryModelUnavailableError), superseded revisions/pending tasks, disabled automatic summaries, or stale context.conversations.summary-discardedanderrorstatus once retries are exhausted.extensions/lineage/rows.solid.tsx):Abstractrow· out of datewhenOverviewDocreportssummaryStatus === 'error'orassessmentStatus === 'error'for that branch, matching the sidebar's error state.extensions/conversations/README.md.extensions/conversations/test/summary-retry.test.tscovering transient/malformed retry recovery across reopen,lengthbudget doubling clamped tomodel.maxTokens, retry exhaustion + recovery on next reply, permanent unavailable-model bailout, and superseding during sleep.extensions/lineage/test/web/rows.test.solid.tsxfor theout of dateabstract marker.Verification
pnpm check(format, lint, types, extension deps, Pi upstream checks): passedpnpm test extensions/conversations/ extensions/lineage/: 23 test files, 162 tests passed