Skip to content

feat(nano-banana-pro): add batch mode, aspect ratio, and gallery output - #1891

Closed
abdaraxus wants to merge 2 commits into
openclaw:mainfrom
abdaraxus:skill/nano-banana-pro-improvements
Closed

abdaraxus wants to merge 2 commits into
openclaw:mainfrom
abdaraxus:skill/nano-banana-pro-improvements

Conversation

@abdaraxus

Copy link
Copy Markdown
Contributor

Summary

Improves the nano-banana-pro skill with batch generation, aspect ratio control, and HTML gallery output.

Changes

New Features

  • Batch generation: --count and --out-dir flags for generating multiple images
  • Aspect ratio control: --aspect-ratio flag with options 1:1, 3:4, 4:3, 9:16, 16:9
  • HTML gallery: Generates index.html thumbnail gallery for batch mode
  • Metadata export: Generates prompts.json with image metadata
  • Updated model: Default model changed to gemini-2.0-flash-preview-image-generation

Documentation

  • Added options table to SKILL.md
  • Added batch mode examples
  • Clarified API key configuration

Fixes (from Codex code review)

  • Fixed HTML injection risk by escaping prompts in gallery HTML
  • Fixed aspect_ratio=None issue by omitting field when editing images
  • Exit non-zero if all batch items fail (previously exited 0)
  • Use relative paths in metadata for gallery portability
  • Added explicit encoding to file writes

Testing

  • Syntax check passes
  • Manual testing with Gemini API (requires API key)

AI Assistance

This PR was created with assistance from Claude (Clawdbot) and reviewed by Codex CLI.


Co-authored-by: Codex [email protected]

abdaraxus and others added 2 commits January 22, 2026 06:17
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]>
@abdaraxus

Copy link
Copy Markdown
Contributor Author

Closing - this was opened in error, unrelated to intended OAuth work.

@abdaraxus abdaraxus closed this Jan 25, 2026
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