Repository navigation
Conversation
When subagent sessions are restored (e.g., via manual recovery) but not re-registered in the subagent registry, they never get re-archived. This fix adds a reconciliation step during subagent registry initialization that: 1. Scans the session store for sessions with `spawnedBy` set 2. Identifies sessions not tracked in the subagent registry 3. Adds them to the registry with an appropriate archiveAtMs The archiveAtMs is calculated based on the session's last updatedAt time plus the configured archiveAfterMinutes, so sessions that are already past their archive time will be cleaned up on the next sweep. Also adds a test for the reconciliation behavior.
Improvements: - Add batch generation with --count and --out-dir flags - Add aspect ratio control (1:1, 3:4, 4:3, 9:16, 16:9) - Generate HTML gallery and prompts.json for batch mode - Update default model to gemini-2.0-flash-preview-image-generation - Improved SKILL.md with options table and examples Fixes from Codex review: - Fix HTML injection risk by escaping prompts in gallery - Fix aspect_ratio=None issue by omitting field when editing - Exit non-zero if all batch items fail - Use relative paths in metadata for portability - Add encoding to file writes Co-authored-by: Codex <[email protected]>
Contributor
Author
|
Closing - this was opened in error, unrelated to intended OAuth work. |
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
Improves the nano-banana-pro skill with batch generation, aspect ratio control, and HTML gallery output.
Changes
New Features
--countand--out-dirflags for generating multiple images--aspect-ratioflag with options 1:1, 3:4, 4:3, 9:16, 16:9index.htmlthumbnail gallery for batch modeprompts.jsonwith image metadatagemini-2.0-flash-preview-image-generationDocumentation
Fixes (from Codex code review)
aspect_ratio=Noneissue by omitting field when editing imagesTesting
AI Assistance
This PR was created with assistance from Claude (Clawdbot) and reviewed by Codex CLI.
Co-authored-by: Codex [email protected]