fix: Codex 自动压缩不触发 —— 接管时链接模型目录(绝对路径)进 config.toml (hot 1.5.83)

This commit is contained in:
mac
2026-08-16 12:45:32 +08:00
parent e9a261482c
commit 1b687c01e9
50 changed files with 10885 additions and 1161 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ async function tokenStatus() {
try {
const snap = voice.status();
const page = await voice.tokenStatus();
const local = tokenUsage.readDaily();
const local = await tokenUsage.readDaily();
if (local && local.available) {
await voice.tokenSet(local);
return { ok: true, phase: snap.phase, connected: snap.phase === "connected", ...local, network: page.network };
@@ -31,7 +31,7 @@ async function tokenStatus() {
async function tokenReset() {
try {
const local = tokenUsage.reset();
const local = await tokenUsage.reset();
const ok = await voice.tokenSet(local);
await voice.tokenReset();
return { ok: ok || true };