Refresh Codex plugin: upload-free archviz prompts + PNG icons#60
Conversation
- Replace the three default suggestion prompts with self-contained architecture-visualization prompts that need no user upload, showcasing text-to-image generation (exterior concepts, photoreal villa, interior). - Convert logo/composerIcon from JPG to PNG and update manifest references; the installed-plugins icon renderer does not decode JPG (docs use PNG). - Keep the dual-location asset copy in build.py so icon paths resolve whether treated as plugin-root- or manifest-directory-relative. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @polooner's task in 1m 57s —— View job Review: Refresh Codex plugin
Verdict: LGTM. Small, well-scoped change. The reasoning holds up and I found no correctness or CI-regression risks. One non-blocking note left inline on What I verified
Inline note (non-blocking)
Note: I couldn't run |
| # Place assets at the plugin root AND alongside the manifest so | ||
| # interface.logo/composerIcon resolve whether the app treats those | ||
| # paths as plugin-root-relative or manifest-directory-relative. | ||
| for base in (staging_root / "assets", staging_root / ".codex-plugin" / "assets"): | ||
| target = base / relative | ||
| target.parent.mkdir(parents=True, exist_ok=True) | ||
| shutil.copy2(source, target) |
There was a problem hiding this comment.
The dual-location copy is a sound fix. One gap worth noting: validate_plugin_root → assert_packaged_file only checks the plugin-root-relative copy (staging_root / "./assets/…"), never the manifest-dir copy (.codex-plugin/assets/…) written here. Since the whole reason for copying to both is uncertainty over how the app resolves interface.logo/composerIcon, the validator can't actually catch the blank-icon failure this PR fixes if the manifest-relative copy ever goes missing. Consider asserting both paths exist. Not blocking — copy_assets always writes both today.
Also note this duplicates every asset into two locations (screenshots too), not just the icons. Harmless now (screenshots is empty, icons are tiny), just flagging the behavior.
Show the plugin's range instead of three architecture prompts: - Architecture (image): photoreal hillside villa render - Brand launch (video): 15s cinematic spot for a fictional e-bike brand - Skincare campaign (video): 10s glow-serum ad for a fictional brand Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @polooner's task in 1m 42s —— View job Review: Codex plugin refresh (re-review after
|
Bump synced package, plugin, marketplace, codex/cursor manifest, and skill versions to 0.5.3 so the install picks up the refreshed default prompts and PNG icons (the plugin install cache is keyed by version). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @polooner's task in 1m 3s —— View job Review: Refresh Codex plugin (updated for
|
| "defaultPrompt": [ | ||
| "Generate 20 variations of my product in different studio backgrounds and angles", | ||
| "Make a 5-second product teaser from this reference image", | ||
| "Upscale this image with your top 5 enhancers and let me compare the results" | ||
| "Render a photorealistic hillside villa at golden hour with floor-to-ceiling glass and an infinity pool", | ||
| "Make a 15-second cinematic launch video for 'Kestra', an electric city bike brand, riding misty dawn streets", | ||
| "Create a 10-second skincare campaign video for 'Velora' glow serum: dewy skin, water ripples, soft light" | ||
| ] |
There was a problem hiding this comment.
Two of the three first-run defaults are now video prompts, which sits in tension with this PR's stated goal of an upload-free, self-contained quick-win showcase.
Unlike the image prompt (line 39), a video request routes through the marketing/generate video workflows, which gate on:
- Mandatory cost-preflight —
krea-generate/references/cost-preflight.md; perkrea-marketing/workflows/social-video-short.md:24a 15s Seedance-2 720p run is ~1564 CU and 10–15 min, and the agent must show the estimate and get a yes. - Storyboard approval —
krea-generate/references/troubleshooting.md:97: "Do not submit a short social video without showing the user an approved storyboard first."
So a brand-new user clicking "Make a 15-second cinematic launch video…" lands in a multi-minute, credit-heavy, approval-gated flow — a very different first impression from the image prompt's fast result. That's a UX judgment call, not a bug (durations are valid: 15s/10s are within the 3–15s / 4–15s model ranges, and prompts route cleanly), but worth a deliberate decision. If a fast first-run win is the goal, consider keeping ≥2 image prompts and a single short (5s) video prompt.
Note: the PR description still lists the three archviz prompts (villa / Scandinavian room / 6 exterior concepts); the later "Diversify" commit replaced two with these video prompts. Worth updating the PR body so reviewers see what actually ships.
What
Two changes to the Codex plugin packaging inputs:
1. Upload-free architecture-visualization prompts
Replaces the three
interface.defaultPromptsuggestions. The old ones all required a user upload/product ("...my product", "...this reference image", "Upscale this image..."), which doesn't work for a first-run showcase. New prompts are self-contained text-to-image, focused on archviz:2. Fix missing logo in the installed-plugins list
Icons were JPG. Every example in the Codex plugin docs uses PNG, and the installed-plugins icon renderer doesn't decode JPG — so the icon was packaged but blank. Converted
logo/composerIconto PNG (2048×2048, same artwork) and updated the manifest references.build.pyretains the dual-location asset copy so icon paths resolve whether the app treats them as plugin-root- or manifest-directory-relative.Notes
dist/is gitignored; rebuild withpython3 .codex-plugin/build.py.🤖 Generated with Claude Code