Skip to content

fix(gallery): cancel downloads and recover installation receipts after disconnect - #116

Merged
cangen185-sudo merged 5 commits into
starsstreaming:mainfrom
cangen185-sudo:codex/fix-gallery-cancel-recover
Nov 18, 2026
Merged

cangen185-sudo merged 5 commits into
starsstreaming:mainfrom
cangen185-sudo:codex/fix-gallery-cancel-recover

Conversation

@cangen185-sudo

Copy link
Copy Markdown
Collaborator

Closing/filtering a gallery previously discarded late results without cancelling the query, and Codex installation waited indefinitely on one bridge response.

Add abortable catalog/metadata requests and session-local installation receipts for Codex and DSH panels. A client-generated operation ID is stored before dispatch, making a lost start response queryable and repeat starts idempotent. Short status requests replace an unbounded install call. Downloads support cancellation/deadlines; once atomic apply begins, cancellation is explicitly declined and the final result remains queryable. Completed receipts are bounded by TTL/capacity and service restarts return an explicit unknown result.

Validation: operation cancellation, pre-dispatch cancellation, lost-start recovery, metadata abort, bounded receipts and atomic-apply behavior passed. Both original panel scripts passed isolated Edge cancellation/reopen tests; the full browser suite passed 35 cases. No public skin service or live host was modified.

Receipts are scoped to a running service, not durable across a host restart. WorkBuddy/Cursor/Doubao standalone galleries are not claimed to implement this panel protocol.

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2ee824e6-9212-4ea7-9657-29eaa95f5a73
Commits

Reviewing files that changed from the base of the PR and between 44896d2 and c48132d.

Files selected for processing: 13

  • integrations/deepseek-harness/gallery-host.mjs
  • integrations/deepseek-harness/gallery.js
  • integrations/deepseek-harness/index.mjs
  • integrations/deepseek-harness/test/gallery-operation.test.mjs
  • integrations/deepseek-harness/ui-host.mjs
  • packages/adapter-codex/src/console-host.ts
  • packages/adapter-codex/src/renderer/gallery.js
  • packages/adapter-codex/src/skin-center.ts
  • packages/adapter-codex/test/gallery-operations.browser.test.js
  • packages/core/src/gallery-operations.ts
  • packages/core/src/index.ts
  • packages/core/src/skin-catalog.ts
  • packages/core/test/gallery-operations.test.js
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cangen185-sudo
cangen185-sudo merged commit f212826 into starsstreaming:main Nov 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant