@tritard/waterbrother 0.16.104 → 0.16.105

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/gateway.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tritard/waterbrother",
3
- "version": "0.16.104",
3
+ "version": "0.16.105",
4
4
  "description": "Waterbrother: bring-your-own-model coding CLI with local tools, sessions, operator modes, and approval controls",
5
5
  "type": "module",
6
6
  "bin": {
package/src/gateway.js CHANGED
@@ -3588,7 +3588,11 @@ class TelegramGateway {
3588
3588
  const linkedSession = await loadSession(sessionId);
3589
3589
  const sessionCwd = linkedSession.cwd || this.cwd;
3590
3590
  const linkedProject = await loadSharedProject(sessionCwd).catch(() => null);
3591
- await this.maybeAnnounceRoomAgentEvents(message, linkedProject);
3591
+ const preflightText = text.startsWith("/") ? "" : this.stripBotMention(text);
3592
+ const preflightStateIntent = preflightText ? parseTelegramStateIntent(preflightText) : null;
3593
+ if (!preflightStateIntent) {
3594
+ await this.maybeAnnounceRoomAgentEvents(message, linkedProject);
3595
+ }
3592
3596
 
3593
3597
  if (text === "/about") {
3594
3598
  await this.sendMessage(