fix(tui): restore auto mode bottom banner

Remove setFooter(hideFooter) calls in auto-start.js and auto.js that were
overriding the sf-tui footer with a near-invisible stub. The sf-tui footer
already checks isAutoActive() and routes to renderAutoFooter — no override
needed. Also remove now-unused hideFooter import from auto.js.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Mikael Hugo 2026-05-10 04:33:54 +02:00
parent 32d2faac50
commit be785ea13f
5 changed files with 5 additions and 7 deletions

Binary file not shown.

Binary file not shown.

View file

@ -23,14 +23,14 @@
"total": 1
},
"minimax/MiniMax-M2.7-highspeed": {
"successes": 2,
"successes": 3,
"failures": 0,
"timeouts": 0,
"totalTokens": 891034,
"totalCost": 0.20030757,
"lastUsed": "2026-05-10T01:24:00.207Z",
"lastUsed": "2026-05-10T02:32:24.115Z",
"successRate": 1,
"total": 2
"total": 3
}
},
"discuss-milestone": {

View file

@ -19,7 +19,6 @@ import {
import { join, sep as pathSep } from "node:path";
import { collectSecretsFromManifest } from "../get-secrets-from-user.js";
import { ensureAgenticDocsScaffold } from "./agentic-docs-scaffold.js";
import { hideFooter } from "./auto-dashboard.js";
import {
cleanStaleRuntimeUnits,
getAutoWorktreePath,
@ -1091,7 +1090,8 @@ export async function bootstrapAutoSession(
snapshotSkills();
}
ctx.ui.setStatus("sf-auto", s.stepMode ? "next" : "auto");
ctx.ui.setFooter(hideFooter);
// sf-tui footer already handles auto mode via isAutoActive() → renderAutoFooter;
// no need to override it here.
// Hide sf-health during AUTO — sf-progress is the single source of truth
// for last-commit / cost / health signal while auto is running.
safeSetWidget(ctx, "sf-health", undefined);

View file

@ -49,7 +49,6 @@ import {
import {
updateProgressWidget as _updateProgressWidget,
clearSliceProgressCache,
hideFooter,
updateSliceProgressCache,
} from "./auto-dashboard.js";
import { DISPATCH_RULES, resolveDispatch } from "./auto-dispatch.js";
@ -1681,7 +1680,6 @@ export async function startAuto(ctx, pi, base, verboseMode, options) {
}
registerSigtermHandler(lockBase());
ctx.ui.setStatus("sf-auto", s.stepMode ? "next" : "auto");
ctx.ui.setFooter(hideFooter);
ctx.ui.notify(
s.stepMode ? "Assisted mode resumed." : "Autonomous mode resumed.",
"info",