feat: [1/2] add clickable generation status annotations - #199
Merged
Merged
Conversation
dazzatronus
marked this pull request as ready for review
September 24, 2026 12:07
dazzatronus
added this pull request to stack #201
September 24, 2026 12:15
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 24, 2026
# [2.22.0](v2.21.1...v2.22.0) (2026-09-24) ### Features * allow hosts to activate generation status annotations ([#199](#199)) ([e9eb7ce](e9eb7ce))
|
🎉 This PR is included in version 2.22.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Hosts need a way to open a cost breakdown or recovery view from a generation annotation. Add an optional
onActivatecallback to the existing/internalstatus type and render actionable annotations as native buttons beside Generate. Passive annotations remain text; error statuses still block generation.Activation: the host must register a status provider and supply
onActivate. No root-package exports are added.Verify:
npm run verify:cipasses (2,133 tests, lint, types, build and package contracts). Browser checks cover pointer, Enter and Space activation, passive/absent status and error blocking.flowchart TD A[Choose a generation model] --> B{Settings hook enabled and model accepts source images?} B -->|No| C[Keep current inputs] B -->|Yes| D{Image source present and references empty?} D -->|Yes| E[Use clip source as Image 1] D -->|No| C C --> F{Status hook registered?} E --> F F -->|No| G[Use normal generation controls] F -->|Yes| H[Host supplies status for current settings] H --> I{Error status?} I -->|Yes| J[Block Generate and Enter] I -->|No| K[Apply normal generation checks] H --> L{Host supplied an action?} L -->|No| M[Show status as text] L -->|Yes| N[Show status button beside Generate] N --> O[Click or use Enter or Space] O --> P[Open the host view]Rules: model selection, status activation, generation guard.