Expose agent loop UX#7
Merged
Merged
Conversation
95f61ee to
6c4edb4
Compare
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.
What changed
AgentLoopStatewith loop phase, turn, HITL status, stop rule, and state backend metadata.gemini-3.5-flashfor research/planning andgemini-3.1-flash-lite-imagefor image generation/refinement, including stale localStorage migration.0.5K,1K, and2K.--image-modeloption so CLI users can choosegemini-3.1-flash-imagefor quality-focused runs while keeping Lite Image as the default.previousInteractionId.Why
The app already had a two-agent research/image pipeline, but the agent loop contract was implicit and the web app still had stale paths for alternate image models and higher resolutions. This makes state preservation, HITL iteration, research-vs-image separation, model routing, and portability explicit and enforceable.
Verification
npm run lintnpm testnpm run buildpython3 -m py_compile skill/infographic-agent/portable_infographic.pygit diff --checkNote:
npm testpasses while existing jsdom/downloadService warnings still print during the download tests. Directportable_infographic.py --helprequiresgoogle-genaito be installed because the script imports the SDK before parsing flags.