@foxden-app/foxclaw 0.5.28 → 0.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/controller/controller.js +5 -3
- package/dist/i18n.d.ts +2 -2
- package/dist/i18n.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable FoxClaw changes are listed here. Each release note is bilingual so GitHub Releases and the npm package are useful to both Chinese and English readers.
|
|
4
4
|
|
|
5
|
+
## 0.5.29 - 2026-06-09
|
|
6
|
+
|
|
7
|
+
### 中文
|
|
8
|
+
- 重启自动续接遇到旧 Codex thread 永久 `thread not found` 时,会静默创建 replacement thread 并复用原 Telegram 状态卡继续跑,不再只反复等待旧 thread 恢复。
|
|
9
|
+
- 自动续接提示补充了无上下文兜底指令:如果旧线程上下文不可用,会检查当前工作目录、git 状态、服务日志和运行状态后完成收尾总结。
|
|
10
|
+
|
|
11
|
+
### English
|
|
12
|
+
- Restart auto-resume now silently creates a replacement thread when the old Codex thread remains `thread not found`, reusing the original Telegram status card instead of only waiting for the old thread to recover.
|
|
13
|
+
- The auto-resume prompt now includes a no-context fallback: inspect the current working directory, git status, service logs, and runtime state before finishing the user-facing summary.
|
|
14
|
+
|
|
5
15
|
## 0.5.28 - 2026-06-09
|
|
6
16
|
|
|
7
17
|
### 中文
|
|
@@ -2565,7 +2565,9 @@ export class BridgeSessionCore {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
this.logger.warn('codex.turn_thread_not_found', { scopeId, threadId: binding.threadId });
|
|
2567
2567
|
const replacement = await this.createBinding(scopeId, binding.cwd ?? this.config.defaultCwd);
|
|
2568
|
-
|
|
2568
|
+
if (overrides.notifyMissingThread !== false) {
|
|
2569
|
+
await this.sendMessage(scopeId, t(this.localeForChat(scopeId), 'current_thread_unavailable_continued', { threadId: replacement.threadId }));
|
|
2570
|
+
}
|
|
2569
2571
|
const nextSettings = this.store.getChatSettings(scopeId);
|
|
2570
2572
|
const nextAccess = this.resolveEffectiveAccess(scopeId, nextSettings);
|
|
2571
2573
|
const replacementCwd = replacement.cwd ?? this.config.defaultCwd;
|
|
@@ -7325,7 +7327,7 @@ export class BridgeSessionCore {
|
|
|
7325
7327
|
}
|
|
7326
7328
|
const snapshot = await this.app.readThreadSnapshot(preview.threadId);
|
|
7327
7329
|
if (!snapshot) {
|
|
7328
|
-
return false;
|
|
7330
|
+
return preview.isObserved ? false : this.resumeInterruptedTurnAfterRestart(preview, target);
|
|
7329
7331
|
}
|
|
7330
7332
|
const liveTurn = findLiveTurn(snapshot);
|
|
7331
7333
|
if (liveTurn) {
|
|
@@ -7404,7 +7406,7 @@ export class BridgeSessionCore {
|
|
|
7404
7406
|
try {
|
|
7405
7407
|
await this.sendTyping(preview.scopeId);
|
|
7406
7408
|
const turnState = await this.startTurnWithRecovery(preview.scopeId, binding, input, {
|
|
7407
|
-
|
|
7409
|
+
notifyMissingThread: false,
|
|
7408
7410
|
});
|
|
7409
7411
|
if (turnState.collaborationMode === 'plan') {
|
|
7410
7412
|
this.store.setChatCollaborationMode(preview.scopeId, DEFAULT_COLLABORATION_MODE);
|
package/dist/i18n.d.ts
CHANGED
|
@@ -418,7 +418,7 @@ declare const MESSAGES: {
|
|
|
418
418
|
readonly stale_preview_restarted: "The bridge restarted while turn {threadId} was still live. This status card is no longer live. Open the thread in Codex.app or send another message to continue.";
|
|
419
419
|
readonly stale_preview_expired: "This live preview expired after the bridge stopped tracking the turn. If a final reply arrived, see below. Otherwise send the message again.";
|
|
420
420
|
readonly stale_user_input_interrupted: "The bridge found a stale Codex input request for thread {threadId} with no recoverable Telegram question. It interrupted that stuck turn; send the message again to continue.";
|
|
421
|
-
readonly restart_auto_resume_prompt: "FoxClaw restarted while the previous turn was running. Continue the interrupted work from where it left off.";
|
|
421
|
+
readonly restart_auto_resume_prompt: "FoxClaw restarted while the previous turn was running. Continue the interrupted work from where it left off. If the previous thread context is unavailable, inspect the current working directory, git status, service logs, and runtime state, then finish the user-facing summary.";
|
|
422
422
|
readonly streaming_reply_below: "Streaming reply below...";
|
|
423
423
|
readonly interrupt_requested_preview: "Interrupt requested...";
|
|
424
424
|
readonly interrupt_requested_waiting: "Interrupt requested. Waiting for Codex to stop...";
|
|
@@ -1115,7 +1115,7 @@ declare const MESSAGES: {
|
|
|
1115
1115
|
readonly stale_preview_restarted: "桥接在该线程 {threadId} 仍处于活动状态时重启了。这张状态卡已经不再实时更新。你可以去 Codex.app 打开线程,或重新发一条消息继续。";
|
|
1116
1116
|
readonly stale_preview_expired: "之前的实时预览在桥接停止跟踪这轮回复后已经失效。如果下方已有最终回复,请以最终回复为准;否则请重新发送消息。";
|
|
1117
1117
|
readonly stale_user_input_interrupted: "桥接发现线程 {threadId} 有一条已经无法恢复到 Telegram 的 Codex 输入请求,已中断这条卡住的回复。请重新发送消息继续。";
|
|
1118
|
-
readonly restart_auto_resume_prompt: "FoxClaw
|
|
1118
|
+
readonly restart_auto_resume_prompt: "FoxClaw 重启时上一轮回复仍在运行。请从中断处继续完成刚才的工作。如果上一线程上下文不可用,请检查当前工作目录、git 状态、服务日志和运行状态,然后完成面向用户的收尾总结。";
|
|
1119
1119
|
readonly streaming_reply_below: "回复正在下方持续输出...";
|
|
1120
1120
|
readonly interrupt_requested_preview: "已请求中断...";
|
|
1121
1121
|
readonly interrupt_requested_waiting: "已请求中断,正在等待 Codex 停止...";
|
package/dist/i18n.js
CHANGED
|
@@ -416,7 +416,7 @@ const MESSAGES = {
|
|
|
416
416
|
stale_preview_restarted: 'The bridge restarted while turn {threadId} was still live. This status card is no longer live. Open the thread in Codex.app or send another message to continue.',
|
|
417
417
|
stale_preview_expired: 'This live preview expired after the bridge stopped tracking the turn. If a final reply arrived, see below. Otherwise send the message again.',
|
|
418
418
|
stale_user_input_interrupted: 'The bridge found a stale Codex input request for thread {threadId} with no recoverable Telegram question. It interrupted that stuck turn; send the message again to continue.',
|
|
419
|
-
restart_auto_resume_prompt: 'FoxClaw restarted while the previous turn was running. Continue the interrupted work from where it left off.',
|
|
419
|
+
restart_auto_resume_prompt: 'FoxClaw restarted while the previous turn was running. Continue the interrupted work from where it left off. If the previous thread context is unavailable, inspect the current working directory, git status, service logs, and runtime state, then finish the user-facing summary.',
|
|
420
420
|
streaming_reply_below: 'Streaming reply below...',
|
|
421
421
|
interrupt_requested_preview: 'Interrupt requested...',
|
|
422
422
|
interrupt_requested_waiting: 'Interrupt requested. Waiting for Codex to stop...',
|
|
@@ -1113,7 +1113,7 @@ const MESSAGES = {
|
|
|
1113
1113
|
stale_preview_restarted: '桥接在该线程 {threadId} 仍处于活动状态时重启了。这张状态卡已经不再实时更新。你可以去 Codex.app 打开线程,或重新发一条消息继续。',
|
|
1114
1114
|
stale_preview_expired: '之前的实时预览在桥接停止跟踪这轮回复后已经失效。如果下方已有最终回复,请以最终回复为准;否则请重新发送消息。',
|
|
1115
1115
|
stale_user_input_interrupted: '桥接发现线程 {threadId} 有一条已经无法恢复到 Telegram 的 Codex 输入请求,已中断这条卡住的回复。请重新发送消息继续。',
|
|
1116
|
-
restart_auto_resume_prompt: 'FoxClaw
|
|
1116
|
+
restart_auto_resume_prompt: 'FoxClaw 重启时上一轮回复仍在运行。请从中断处继续完成刚才的工作。如果上一线程上下文不可用,请检查当前工作目录、git 状态、服务日志和运行状态,然后完成面向用户的收尾总结。',
|
|
1117
1117
|
streaming_reply_below: '回复正在下方持续输出...',
|
|
1118
1118
|
interrupt_requested_preview: '已请求中断...',
|
|
1119
1119
|
interrupt_requested_waiting: '已请求中断,正在等待 Codex 停止...',
|