fix: Codex 自动压缩不触发 —— 接管时链接模型目录(绝对路径)进 config.toml (hot 1.5.83)
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user