@foxden-app/foxclaw 0.6.5 → 0.6.6
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
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.6.6 - 2026-08-10
|
|
6
|
+
|
|
7
|
+
### 中文
|
|
8
|
+
- Telegram 远端初始化从断网中恢复后会立即刷新桥接状态,使 `/status` 和运行时状态继续显示 bot 用户名,而不是停留在离线启动时的空值。
|
|
9
|
+
|
|
10
|
+
### English
|
|
11
|
+
- Refreshes bridge status as soon as Telegram remote initialization recovers, so `/status` and runtime state show the bot username instead of retaining the empty offline-start value.
|
|
12
|
+
|
|
5
13
|
## 0.6.5 - 2026-08-10
|
|
6
14
|
|
|
7
15
|
### 中文
|
|
@@ -174,6 +174,10 @@ export class BridgeSessionCore {
|
|
|
174
174
|
}
|
|
175
175
|
/** Wire Telegram inbound events. Call before {@link startCodexApp}. */
|
|
176
176
|
registerTelegramInboundHandlers() {
|
|
177
|
+
this.bot.on('remoteReady', () => {
|
|
178
|
+
this.botUsername = this.bot.username;
|
|
179
|
+
this.updateStatus();
|
|
180
|
+
});
|
|
177
181
|
this.bot.on('text', (event) => {
|
|
178
182
|
void this.withLock(event.scopeId, async () => this.handleText(event)).catch((error) => {
|
|
179
183
|
void this.handleAsyncError('telegram.text', error, event.scopeId);
|
package/dist/telegram/gateway.js
CHANGED
|
@@ -246,6 +246,9 @@ export class TelegramGateway extends EventEmitter {
|
|
|
246
246
|
await this.resolveBotIdentity(true);
|
|
247
247
|
await this.registerCommands();
|
|
248
248
|
remoteInitialized = true;
|
|
249
|
+
this.emit('remoteReady');
|
|
250
|
+
if (!this.running)
|
|
251
|
+
return;
|
|
249
252
|
}
|
|
250
253
|
const offset = this.store.getTelegramOffset(this.botKey) + 1;
|
|
251
254
|
const result = await callTelegramApi(this.botToken, 'getUpdates', {
|