Repository navigation
AGY Studio v2.1.0
Long-term maintenance (LTS) consolidation release: introduces automatic host-drift safe-mode circuit breaking against newer unverified Antigravity Desktop builds (2.36.0 verified baseline), one-command pause/resume (studio:off / studio:on) without uninstalling, canonical daemon protobuf wire decoding with standalone-hook drift guards, cleared oversize module/CSS ratchets ({}), pruned dead UI styles, and a concise maintenance runbook.
Added
[cross]Host-Drift Safe-Mode Tripwire, One-Switchoff/on& LTS Maintenance Runbook (studio/{daemon/host-tripwire.mjs,host/contracts.mjs,cli.mjs},core/{daemon.mjs,daemon/prefs-bundle.mjs,daemon/remote-bridge.mjs},studio/daemon/auto-compact-runner.mjs,install.mjs,package.json,docs/MAINTENANCE.md,.github/workflows/ci.yml,test/lts-consolidation.test.mjs): BumpedVERIFIED_HOST_BASELINES.latestVerifiedVersionto2.36.0; addedrunHostDriftTripwire()(auto-probing newer host versions once on daemon startup and automatically engaging read-onlysafeModewhen critical DOM/Fiber/SQLite contracts break, disabling UI injection, Remote write RPCs, and background/compactdispatch while staying passive when offline); addednpm run studio:off/studio:onandnode studio/cli.mjs safe-mode [status|off|on]withpaused/safeMode/hostBaselinediagnostics inrunDoctor(); exportedgetAntigravityAppFingerprintfrominstall.mjsfor offline version probing; added docs/MAINTENANCE.md and a weekly Monday CI schedule.
Changed
[cross]Canonical Protobuf Wire Primitives & Standalone Hook Drift Guard (studio/daemon/lib/proto-wire.mjs,studio/daemon/{opus-gate-service,resume-detector,bg-task-status}.mjs,studio/plugin/maga-{anchors/hooks/anchor-guard,opus-gate/hooks/gate-check}.mjs,test/lts-consolidation.test.mjs): ExtractedparseProtoFields,parseProtoFieldsLast,readUtf8,getSafeCid, andreadJsonSafeintostudio/daemon/lib/proto-wire.mjsfor daemon SQLite decoders, hardened wireType 1/5 bounds checks in standalone plugin hooks, and added golden/truncated protobuf buffer equivalence tests asserting zero drift between daemon and standalone hooks.[cross]Dead CSS Pruning & Centralized Row-1 Legacy Pill Cleanup (user/custom.css,studio/styles/projects-{detail-composer,detail-lists,grid-modal}.css,studio/modules/{opus-gate-pill,anchors-pill,resume-banner,auto-compact}.mjs): Pruned 28 verified-dead CSS classes with zero JS/HTML/test references while preserving shared keyframes, and consolidated redundant legacy Row-1 pill DOM removal solely intocleanupLegacyRow1Pills(autonomy-pill.mjs+studio/entry.mjs).[cross]Phase 1 Codebase Modularization & Size-Ratchet Clearance (remote/pwa/src/styles{,.css}/*,core/install/{paths,state,service}.mjs,install.mjs,user/custom.css,studio/{build.mjs,styles/*},test/{size-baseline.json,studio,ui,audit-regressions,remote-phase2}.test.mjs): Modularizedremote/pwa/src/styles.cssinto ordered@importpartials underremote/pwa/src/styles/, extractedcore/install/{paths,state,service}.mjsfrominstall.mjswith full public export parity and host read-only boundary compliance, moved the contiguoususer/custom.csstail (L1515–8945) byte-identically into 9 orderedstudio/styles/*.csspartials prepended toSTYLE_FILESinstudio/build.mjswhile keepinguser/custom.csstracked as the 3-way-merge user-layer template, widened the:has()CSS static guard across allstudio/styles/*.css, and clearedtest/size-baseline.jsonoversizeRatchetto{}.[cross]Lossless Milestone Handoff, Async Continuation Titling & Old-Chat Lineage Strip (studio/daemon/{handoff-transcript,handoff-lineage,anchors-service,race-service}.mjs,core/daemon/overview-skills.mjs,studio/modules/{anchors-pill,autonomy-pill,handoff-lineage-bar}.mjs,studio/{core/dom,shared/autonomy-icons,entry}.mjs,studio/styles/{autonomy-pill,anchors-pill}.css,user/src/{entry,core/runtime-ctx,modules/projects/handoff-launch}.mjs,test/{anchors,handoff-upgrade}.test.mjs): Replaced the lossy 512 KB tail-only transcript slice increateMilestoneHandoff()with reverse 256 KB chunk scanning (extractLosslessHandoffTranscript()), capturing Turn-1 original goal, full latestCHECKPOINT, priority-budgeted post-checkpoint turns (up to ~36–40 KB total prompt, keeping the last 3 turns and trimming oldest assistant replies first), activebrain/<cid>/*.mdartifacts, and a redacted file/command-exit ledger strictly free ofthinking/rawThinkingand tool stdout under a nonce-scoped<untrusted_reference id="...">fence; upgraded the handoff popover input to an auto-growing 2,000-char<textarea>with aligned auto-continue semantics and a pre-launch size/checkpoint/turns trust meta line; added nonce-verifiedhandoff-lineage.jsontracking with immediate chain-aware fallback titling (· 续/· 续2) plus non-blocking Gemini Flash async title refinement; and mounted#agy-handoff-lineage-barabove the old conversation's composer with a direct jump button while calming#agy-autonomy-pillto↪ 已交接until compactionGgrows again.
Fixed
[cross]Suppress False-PositiveResume / 继续任务After Completed/compact(studio/daemon/resume-detector.mjs,test/studio.test.mjs): StoppedcollectResumeState()from flagging completed bare/compactsteps (STEP_USER_INPUTwith/compacttext orcompactSlashCommandScopeItem, including headless RPCconvo.compactwithoutPLANNER_RESPONSE) asinterrupted: true, reason: 'unanswered'when followed by a completedSTEP_CHECKPOINT(step_type = 23), while preservingunanswereddetection for/compact <prompt>follow-ups, normal user messages, and failed or checkpoint-less/compactattempts.[cross]Background Auto-Compact Runner, Fail-Closed Quiet-Boundary Guard & Commit-Time Ledger (core/daemon/{host-tap,remote-bridge}.mjs,core/daemon.mjs,studio/daemon/{auto-compact-service,auto-compact-runner}.mjs,studio/plugin/maga-auto-compact/hooks/compact-check.mjs,studio/modules/auto-compact.mjs,user/src/modules/remote-tap.mjs,test/auto-compact.test.mjs): Added a daemon-side background consumer (createAutoCompactRunner) using an extracted, Remote-Gateway-independenthost-tap.mjsRPC bridge so parallel/background and hidden-window chats auto-compact while Prompt Cache is hot instead of expiring after the 5-minute TTL; introduced strict fail-closedclassifyQuietBoundary()(blocking mid-task breather pauses during active non-daemon commands, subagents/workflows, approvals/ask_question/exit_plan_mode, short/conditioned timers, or active child conversations while allowing idle boundaries, daemon servers, unconditional long timers/crons, and parked swarm workers) enforced authoritatively by the daemon after a 3.5s settle grace; movedautoCountand 120s cooldown tracking from Stop-hook write time tocommitAutoCompactRequestwith 60sstep_type = 23checkpoint verification and unconfirmed rollback/backoff; and addedvisibilitychangerefresh plus multi-step settle retries in the foreground controller.[cross]Exclude Subagent Conversations from Standalone Review Proposals & Fleet Cockpit (studio/plugin/maga-opus-gate/hooks/gate-check.mjs,studio/plugin/maga-anchors/hooks/anchor-guard.mjs,studio/daemon/{opus-gate-service,inbox-service}.mjs,test/subagent-review-exclusion.test.mjs): Added dual-layer child/subagent exclusion (payloadparentConversationId+ read-only SQLitetrajectory_metadata_blobparentId/rootIdcheck matchingmaga-auto-compact) so subagents no longer generate standaloneopus-gate-proposals,autoreview continuations,action_loopreview escalations, orG>=3handoff notices, andcollectReviewItems/getOpusGateStatussuppress any legacy/finished subagent proposals andREVISE/HOLDverdicts while preserving.agents/locks.jsonPreToolUseguards and active subagent blocking approval/question bubble-up.[cross]Decision Inbox Worktree Collision Precision & Cluster Aggregation (studio/daemon/{inbox-git-scan,inbox-service}.mjs,studio/modules/decision-inbox.mjs,remote/pwa/src/inbox-view.mjs,test/inbox-collision.test.mjs): Replaced naivebaseBranch...HEADpairwise path-intersection alerts with truegit merge-basefork-point diffing (git diff --raw --no-abbrev -z), identical-blob filtering (eliminating cherry-pick/squash/stacked/sibling false positives), and in-memorygit merge-tree --write-treereal-conflict verification (with Git< 2.38graceful fallback); collapsed connected colliding worktrees per repository into a single cluster card with collision mode badges (Live Edit/Merge Conflict), involved-branch pills, and subset-stable dismissal (resolving files stays dismissed; new colliding files resurface).