@foxden-app/foxclaw 0.5.29 → 0.5.30
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 +17 -10
- 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.30 - 2026-06-09
|
|
6
|
+
|
|
7
|
+
### 中文
|
|
8
|
+
- 修正重启自动续接路径:自动恢复现在会先像用户手动发送“继续”一样 `resumeThread` 原 Codex thread,再在原 thread 上启动续接 turn。
|
|
9
|
+
- 如果原 thread 暂时无法恢复,FoxClaw 会保留状态卡并重试;不会静默切到 replacement thread,避免丢失原线程上下文。
|
|
10
|
+
|
|
11
|
+
### English
|
|
12
|
+
- Fixed restart auto-resume to match the manual "continue" path: FoxClaw now resumes the original Codex thread first, then starts the continuation turn on that same thread.
|
|
13
|
+
- If the original thread cannot be resumed yet, FoxClaw keeps the status card and retries instead of silently switching to a replacement thread and losing context.
|
|
14
|
+
|
|
5
15
|
## 0.5.29 - 2026-06-09
|
|
6
16
|
|
|
7
17
|
### 中文
|
|
@@ -2565,9 +2565,7 @@ 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
|
-
|
|
2569
|
-
await this.sendMessage(scopeId, t(this.localeForChat(scopeId), 'current_thread_unavailable_continued', { threadId: replacement.threadId }));
|
|
2570
|
-
}
|
|
2568
|
+
await this.sendMessage(scopeId, t(this.localeForChat(scopeId), 'current_thread_unavailable_continued', { threadId: replacement.threadId }));
|
|
2571
2569
|
const nextSettings = this.store.getChatSettings(scopeId);
|
|
2572
2570
|
const nextAccess = this.resolveEffectiveAccess(scopeId, nextSettings);
|
|
2573
2571
|
const replacementCwd = replacement.cwd ?? this.config.defaultCwd;
|
|
@@ -7394,10 +7392,15 @@ export class BridgeSessionCore {
|
|
|
7394
7392
|
}
|
|
7395
7393
|
async resumeInterruptedTurnAfterRestart(preview, target) {
|
|
7396
7394
|
const locale = this.localeForChat(preview.scopeId);
|
|
7397
|
-
const
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7395
|
+
const storedBinding = this.store.getBinding(preview.scopeId);
|
|
7396
|
+
const binding = storedBinding?.threadId === preview.threadId
|
|
7397
|
+
? storedBinding
|
|
7398
|
+
: {
|
|
7399
|
+
chatId: preview.scopeId,
|
|
7400
|
+
threadId: preview.threadId,
|
|
7401
|
+
cwd: storedBinding?.cwd ?? this.config.defaultCwd,
|
|
7402
|
+
updatedAt: Date.now(),
|
|
7403
|
+
};
|
|
7401
7404
|
const input = [{
|
|
7402
7405
|
type: 'text',
|
|
7403
7406
|
text: t(locale, 'restart_auto_resume_prompt'),
|
|
@@ -7405,16 +7408,20 @@ export class BridgeSessionCore {
|
|
|
7405
7408
|
}];
|
|
7406
7409
|
try {
|
|
7407
7410
|
await this.sendTyping(preview.scopeId);
|
|
7408
|
-
const
|
|
7409
|
-
|
|
7411
|
+
const readyBinding = await this.ensureThreadReady(preview.scopeId, binding, {
|
|
7412
|
+
recoverMissingThread: false,
|
|
7410
7413
|
});
|
|
7414
|
+
const turnState = await this.startTurnWithRecovery(preview.scopeId, readyBinding, input, {
|
|
7415
|
+
recoverMissingThread: false,
|
|
7416
|
+
});
|
|
7417
|
+
const cwd = readyBinding.cwd ?? this.store.getBinding(preview.scopeId)?.cwd ?? this.config.defaultCwd;
|
|
7411
7418
|
if (turnState.collaborationMode === 'plan') {
|
|
7412
7419
|
this.store.setChatCollaborationMode(preview.scopeId, DEFAULT_COLLABORATION_MODE);
|
|
7413
7420
|
}
|
|
7414
7421
|
await this.registerActiveTurn(preview.scopeId, target.chatId, target.chatType, target.topicId, turnState.threadId, turnState.turnId, preview.messageId, {
|
|
7415
7422
|
input,
|
|
7416
7423
|
threadId: turnState.threadId,
|
|
7417
|
-
cwd
|
|
7424
|
+
cwd,
|
|
7418
7425
|
chatId: target.chatId,
|
|
7419
7426
|
chatType: target.chatType,
|
|
7420
7427
|
topicId: target.topicId,
|
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.";
|
|
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 重启时上一轮回复仍在运行。请从中断处继续完成刚才的工作。";
|
|
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.',
|
|
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 重启时上一轮回复仍在运行。请从中断处继续完成刚才的工作。',
|
|
1117
1117
|
streaming_reply_below: '回复正在下方持续输出...',
|
|
1118
1118
|
interrupt_requested_preview: '已请求中断...',
|
|
1119
1119
|
interrupt_requested_waiting: '已请求中断,正在等待 Codex 停止...',
|