Repository navigation
Conversation
Antigravity (agy) spawns `agy acp` per turn and calls `session/set_model(MODEL)` before each prompt, so a model-only config update does not require restarting agent-node (which previously dropped the node for 12-60s and cleared the in-process agySessionId). - agent-node: classify antigravity model-only patches as `hot`, update `MODEL` in place, clear stale `agyEffectiveModel`, ack applied immediately, push an immediate `report_status` heartbeat, advertise `agy_hot_model_capable: true`, and record `agyEffectiveModel` / `agyModelSource` on turn completion. - commhub-server: preserve `agy_hot_model_capable` in `report_status` schema, expose it on `/api/nodes` and `/api/nodes/:id/config`, and classify antigravity model-only updates as `apply_mode: "hot"` only when the node explicitly advertises `agy_hot_model_capable: true` (older nodes keep `restart` semantics and warnings). Diff-Shape: +157/-18
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch has not been deployed
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
antigravity-acp(agy) spawnsagy acpper turn and callssession/set_model(MODEL)before each prompt, so switching models does not require exiting/restartingagent-node(which previously caused a 12–60s outage and dropped the in-processagySessionId).computeApplyModeclassifies model-only patches onantigravity-*/agyruntimes ashot(mixedmodel + flagsorchannelsstayrestart).processConfigUpdatehot path updates in-memoryMODEL, clears staleagyEffectiveModel/agyModelSource, writesconfig.jsonatomically (with.prev), acksapplied, and immediately pushesreport_statusso Hub/App reflect the new model without waiting for the next periodic heartbeat.agy_hot_model_capable: trueinconfig_snapshotand records realagyEffectiveModel/agyModelSourceon turn completion.agy_hot_model_capableinreport_statusconfig_snapshotZod schema (tools/listbyte margins remain >340 B under all ceilings).agy_hot_model_capableonGET /api/nodesandGET /api/nodes/:id/config.apply_mode: "hot"only when the node explicitly advertisesagy_hot_model_capable: true, preservingrestartsemantics and warnings for older nodes.Verification
agent-node:bun test src/runtime/config-apply.test.ts+npm run build(pass)server:bun test src/config-apply-validate.test.ts src/agy-catalog-projection.test.ts src/tool-audience-http.test.ts src/config-apply-sec1.test.ts src/build-commit-report-http.test.ts(168 pass, 0 fail;tools/listbyte margins: node 356 B, user 727 B, all 342 B)