summaryrefslogtreecommitdiff
path: root/_usage_footer.lua
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-12-01 16:31:43 -0700
committert <t@tjp.lol>2026-12-04 13:53:47 -0700
commit8c1c5786ebfe8dda40a70571f332e876b184ad4d (patch)
tree1116068ae630c45c1218b17fabb3d253bb8003d9 /_usage_footer.lua
parentf7a1e30c1dfbe5fddcbfe38e89a0c5efef9fbeab (diff)
Isolate ACP via custom agent and add steering, usage, reseed, and footer updates
Replace the osascript permission dialog and settings.json permission seed with a per-thread generated custom main agent (excludeDefaultComponents, tools: [], no inherited customizations or MCP) launched with --agent, --include-default-customizations=false, and --dangerously-skip-permissions. Keep HOME unchanged (isolating via --gemini-dir only) so macOS finds the login Keychain, mark exported tools with antigravity/alwaysLoad, and require the relay to serve tools/list before the first prompt. Add ACP turn steering for queued user and workflow text at tool boundaries, preserve agent_thought_chunk thinking blocks with block-aware checkpoint hashing, report live usage_update context snapshots and deduplicated final plus steering token usage, and mount a live above-input native tool activity component for up to six non-MCP ACP calls. Support reseeding a new ACP session from history_transcript after /tree or cold resume, allow direct submissions to take over an idle session from another thread, and let extension follow-ups continue a matching warm session. Update the usage footer with startup and three-minute timer refreshes, 1w/5h labels, per-letter antigravity colors, and expired-bucket handling.
Diffstat (limited to '_usage_footer.lua')
-rw-r--r--_usage_footer.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/_usage_footer.lua b/_usage_footer.lua
index 421afd5..b2859a7 100644
--- a/_usage_footer.lua
+++ b/_usage_footer.lua
@@ -61,6 +61,12 @@ function M.section(ext, label, windows, opts)
opts = type(opts) == "table" and opts or { status = opts }
label = text(label):gsub("^%S+", string.lower)
local provider = (label:match("^(.-) %(") or label):lower()
+ if label == "antigravity" then
+ local colors = {34, 31, 33, 34, 32, 31} -- blue, red, yellow, blue, green, red
+ label = label:gsub("()(.)", function(i, letter)
+ return ("\27[%dm%s"):format(colors[(i - 1) % #colors + 1], letter)
+ end)
+ end
local status = opts.status and text(opts.status) or nil
local snapshot = {}
for _, window in ipairs(windows or {}) do