Repository navigation
desktop: LiveNotes stops retrying the plan-gated managed notes endpoint - #14377
Merged
Merged
Conversation
…n every sentence A basic account's note generation is answered 402 plan_gated, and the monitor logged the typed failure as an error and tried again on the next segment, so a recording produced one doomed managed request and one error line per sentence. Consult the cached entitlement decision first, latch a typed plan_gated failure with a bounded lifetime, log it once at info level, and resume when the plan changes. Other failures and manual notes are unchanged. Failure-Class: FC-typed-failure-collapsed-to-generic Co-Authored-By: Claude Fable 5.1 <[email protected]>
Git-on-my-level
deleted the
fix/desktop-livenotes-respects-plan-gate
branch
September 17, 2026 20:53
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
On a basic (free) account,
LiveNotesMonitorstarted a managed note generation for every transcript segment. The backend answers402 plan_gated, the generator throws the typedGeminiClientError.planGated, and the monitor's catch-all logged it as an error and forgot it. Observed on a free-tier QA bundle against dev on 2026-09-17: a 30-minute recording produced one doomed managed request and one[error] LiveNotesMonitor: Failed to generate note: AI features require an active plan or BYOK keys.line per segment. That is expected plan behaviour, not a failure, and it should not generate request or error traffic.The monitor now:
SubscriptionEntitlementService.cachedDecisionForManagedProactivity(), which already folds BYOK into allow) before each generation and skips when it is.planGated;plan_gatedfailure from the server, so later segments and sessions skip generation, and logs it once at info level (LiveNotesMonitor: AI notes unavailable on this plan; skipping generation);Failure-Class: FC-typed-failure-collapsed-to-generic
Evidence
xcrun swift test --package-path Desktop --filter LiveNoteson Xcode 27.0: 22 tests, 0 failures (12 monitor tests, 8 accumulator tests, 2 others). New tests: gated decision → generator never called; typedplanGatedfailure → exactly one generator call across many segments and no error-level log; decision flips to allow → generation resumes; a network error does not latch.Layer measured: unit tests under Xcode 27.0. The CI-pinned Xcode 26.6 run on this PR is the verdict for that toolchain. Not yet observed: the free-tier QA bundle re-recorded on this build.
🤖 Generated with Claude Code