Commit Graph

170 Commits (ab994d2c635effac05ab1caecf7cd2833132018d)

Author SHA1 Message Date
Peter Steinberger a057f6a306 test(docker): add multi-container gateway network smoke 10 months ago
Peter Steinberger 7b478909b2 chore(release): bump to 2026.1.10 10 months ago
Peter Steinberger cc8d3d331a fix(release): include whatsapp in npm pack 10 months ago
Peter Steinberger 5ec2018c8a fix(release): include msteams in npm pack 10 months ago
Peter Steinberger f918d30a58 docs(testing): refresh live docker runners 10 months ago
Peter Steinberger 8466e53b5d fix: restore Anthropic OAuth tool dispatch 10 months ago
Peter Steinberger 895cd06ecc chore: add dev gateway/tui scripts 10 months ago
Peter Steinberger 8a5fb796c0 test(live): probe Read tool via gateway 10 months ago
Peter Steinberger 5b8f2911df chore: sync pnpm patches after pull 10 months ago
Peter Steinberger 28b7e87c99 fix(pnpm): regenerate patchedDependencies 10 months ago
Peter Steinberger a25922a21f fix: clarify sessions_send delivery semantics 10 months ago
Peter Steinberger 65cc92c06a chore: bump pi libs and oxlint-tsgolint 10 months ago
Peter Steinberger dc3a0bfd1e chore: set version to 2026.1.9 10 months ago
Peter Steinberger 83270f98f7 chore: set version to 2026.1.8 10 months ago
Shadow 2469384643
update carbon 10 months ago
Peter Steinberger 85fab7afe3 chore: add pnpm app workflow scripts 10 months ago
Shadow 60bd21d77b
chore: update carbon 10 months ago
Peter Steinberger 6156402c1a fix: scope 429 fast-fail to antigravity (#561) (thanks @mukhtharcm) 10 months ago
Muhammed Mukhthar CM d0450bb425 fix(antigravity): add fail-fast on 429 rate limit
When Antigravity returns 429, throw immediately instead of waiting for the
server-provided retry delay (which can be 10+ minutes). This lets clawdbot
quickly rotate to another account.

This patch was previously in PR #454 but was accidentally removed in 0dbb569
when bumping to pi-ai 0.40.0. The upstream release did NOT include this fix.

Context: Antigravity rate limits cause pi-ai to sleep for the full retry
delay inside the request, blocking the thread. Clawdbot's timeout would
eventually fire, but waiting 10+ minutes is unacceptable UX.

Bundled with the empty error message filter since both handle 429 recovery.
10 months ago
Muhammed Mukhthar CM 1cfe409a09 fix: filter empty error messages to prevent session corruption
When 429/500 errors occur during tool execution, empty assistant messages
with stopReason='error' and content=[] get persisted to the session file.

These break the tool_use -> tool_result chain that Claude/Gemini require:
- Claude expects every tool_use block to have a matching tool_result
- Empty error messages inserted mid-sequence violate this invariant
- Results in: 'tool_use ids were found without tool_result blocks'

This patch filters out empty error messages when building session context,
allowing sessions to recover gracefully from transient API errors.

Evidence from production:
- 113 of 170 sessions had empty error messages
- Session 30764430 demonstrated recovery: 429 at 14:30:11 IST,
  resumed successfully at 14:30:22, completed at 14:30:34

Sorry Peter, one more patch! 🙈
10 months ago
Shadow d588bb00d4
fix: update carbon version for gateway fixes 10 months ago
Peter Steinberger 083877d286 fix: audit doctor service entrypoint 10 months ago
Peter Steinberger eb73b4e58e chore: make pnpm test non-watch 10 months ago
Onur d9cbecac7f feat(msteams): add MS Teams provider skeleton
- Add Microsoft 365 Agents SDK packages (@microsoft/agents-hosting,
  @microsoft/agents-hosting-express, @microsoft/agents-hosting-extensions-teams)
- Add MSTeamsConfig type and zod schema
- Create src/msteams/ provider with monitor, token, send, probe
- Wire provider into gateway (server-providers.ts, server.ts)
- Add msteams to all provider type unions (hooks, queue, cron, etc.)
- Update implementation guide with new SDK and progress
10 months ago
Peter Steinberger e0c310d056 chore: bump versions to 2026.1.9 10 months ago
Peter Steinberger 3aa5f45094 chore: update dependencies 10 months ago
Peter Steinberger a69a863090 chore: update pi deps 11 months ago
Jake 0dbb569187 chore: bump Pi to 0.40.0 and revert PR #454 pi-ai patch
- Upgrade @mariozechner/pi-* packages from 0.38.0 to 0.40.0
- Remove pi-ai patch (upstream 429 fix in 0.40.0 supersedes PR #454)
- Update CHANGELOG
11 months ago
Peter Steinberger 4c5440ccab chore: bump version to 2026.1.8-2 11 months ago
Peter Steinberger dab3b3442f chore: bump version to 2026.1.8-1 11 months ago
Peter Steinberger 615991a5da chore: include runtime markdown dependency 11 months ago
Peter Steinberger 9fd2fd9362 chore: bump version to 2026.1.8 11 months ago
Peter Steinberger 5d21e8c891 chore(deps): update dependencies 11 months ago
Peter Steinberger 28cd2e4c24 feat: refresh CLI output styling and progress 11 months ago
mneves75 f7b32195cb feat(agent): auto-enable GLM-4.7 thinking mode
Add automatic thinking mode support for Z.AI GLM-4.x models:
- GLM-4.7: Preserved thinking (clear_thinking: false)
- GLM-4.5/4.6: Interleaved thinking (clear_thinking: true)

Uses Z.AI Cloud API format: thinking: { type: "enabled", clear_thinking: boolean }

Includes patches for pi-ai, pi-agent-core, and pi-coding-agent to pass
extraParams through the stream pipeline. User can override via config
or disable via --thinking off.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
11 months ago
Peter Steinberger ebff849722 chore(test): add ui test script 11 months ago
Peter Steinberger 5e01e64cf3 test: split live tests into separate config 11 months ago
mneves75 33e2d53be3 feat(telegram): wire replyToMode config, add forum topic support, fix messaging tool duplicates
Changes:
- Default replyToMode from "off" to "first" for better threading UX
- Add messageThreadId and replyToMessageId params for forum topic support
- Add messaging tool duplicate detection to suppress redundant block replies
- Add sendMessage action to telegram tool schema
- Add @grammyjs/types devDependency for proper TypeScript typing
- Remove @ts-nocheck and fix all type errors in send.ts
- Add comprehensive docs/telegram.md documentation
- Add PR-326-REVIEW.md with John Carmack-level code review

Test coverage:
- normalizeTextForComparison: 5 cases
- isMessagingToolDuplicate: 7 cases
- sendMessageTelegram thread params: 5 cases
- handleTelegramAction sendMessage: 4 cases
- Forum topic isolation: 4 cases

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
11 months ago
Muhammed Mukhthar CM 1a41fecf67 feat(telegram): use grammyjs/runner for concurrent update processing
Previously, grammY's default bot.start() processed updates sequentially,
blocking all Telegram messages while one was being handled. This made
maxConcurrent settings ineffective for Telegram.

Now uses @grammyjs/runner which processes updates concurrently, matching
the behavior of Discord (Promise.all) and WhatsApp (fire-and-forget).

Benefits:
- Ack reactions (👀) appear immediately, not after queue clears
- Multiple chats can be processed in parallel
- maxConcurrent setting now works correctly for Telegram
- Long-running tool calls no longer block other conversations
11 months ago
Peter Steinberger 8804a80111 chore: bump version 2026.1.7 11 months ago
Shadow 9df8af855b
chore: bump carbon version
Closes #349
Closes #354
11 months ago
Peter Steinberger 4fb9293c29 docs: fix internal doc links 11 months ago
Peter Steinberger 5da8258614 fix: gateway:watch args 11 months ago
Peter Steinberger 2871657ebe chore: make bun optional for source builds 11 months ago
Shadow 9b22e1f6e9
feat(commands): unify chat commands (#275)
* Chat commands: registry, access groups, Carbon

* Chat commands: clear native commands on disable

* fix(commands): align command surface typing

* docs(changelog): note commands registry (PR #275)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
11 months ago
Azade 16ce78233f fix(browser): patch playwright-core for Bun WebSocket compatibility
Bun's WebSocket implementation doesn't fully support Playwright's CDP
connection because Playwright bundles its own 'ws' module. This causes
connectOverCDP to timeout.

The patch makes Playwright use the native 'ws' module when running
under Bun, which works with Bun's WebSocket shim.

Fixes browser snapshot/act timeouts after PR #278 (tsx → bun migration).

Ref: https://github.com/oven-sh/bun/issues/9911
11 months ago
Peter Steinberger c27dd75135 build(control-ui): prefer bun for UI build 11 months ago
Ayaan Zaidi 7a48b908e4
refactor: replace tsx with bun for TypeScript execution (#278) 11 months ago
Peter Steinberger 77789cb9a8 fix: improve compaction queueing and oauth flows 11 months ago
Peter Steinberger c1698b6975 docs: add bun install support 11 months ago