feat(nexus): persist image generation operations - #73
Draft
smackgg wants to merge 1 commit into
Draft
Conversation
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.
What changed
operationId, including request identity, downstream task identity, terminal state, result digest, and verified result bytes.get,wait,cancel,result, andacknowledgehandlers so restart recovery resumes the same operation and successful results can be materialized again without a second billable request.service.statusall-or-nothing, single-flighted concurrent Checkout creation, cleared Checkout state during sign-out failures, serialized credential transitions, and forwarded only bounded allowlisted LLM response headers.0.4.1and the Nexus MCP companion to0.3.14.Why
Image generation recovery previously depended on in-memory state. A companion or Host restart could lose the operation/result binding and risk repeating a potentially billable request. Model selection could also be masked by stale catalog state, while partial service responses made failures look like valid degraded data.
User impact
Completed image results survive restart, active work is recovered under the same operation identity, exact failure details remain in logs, and users retry failed cards manually from their persisted prompt. Card model changes now reach the selected Nexus model.
Paired Host change
Validation
bun install --frozen-lockfile --ignore-scriptsbun run checkbun tooling/pack.mjs --catalog node_modules/@convax/plugin-api/dist/generated/plugin-api.json --kind plugin --id nexus-servicebun run packremains intentionally blocked by six existing unrelated publication blockers; the Nexus package-specific pack succeeds.