Commit Graph

1150 Commits

Author SHA1 Message Date
Re-bin
cd2b0f74c9 Merge PR #1579: refine platform policy and memory skill docs 2026-03-08 16:39:40 +00:00
Re-bin
4715321319 Merge branch 'main' into pr-1579 and tighten platform guidance 2026-03-08 16:39:37 +00:00
Re-bin
ce9b516b11 Merge branch 'main' into pr-1579 2026-03-08 16:29:54 +00:00
Re-bin
e7bd5140c3 Merge PR #1728: harden MCP tool cancellation handling 2026-03-08 16:03:24 +00:00
Re-bin
5eb67facff Merge branch 'main' into pr-1728 and harden MCP tool cancellation handling 2026-03-08 16:01:06 +00:00
Re-bin
4e197dc18e Merge branch 'main' into pr-1728 2026-03-08 15:51:06 +00:00
Xubin Ren
51d113d5a5 Merge PR #1727: feat(qq): send messages using markdown payload
feat(qq): send messages using markdown payload
2026-03-08 23:40:30 +08:00
Re-bin
7cbb254a8e fix: remove stale IDENTITY bootstrap entry 2026-03-08 15:39:40 +00:00
Alfredo Arenas
ed3b9c16f9 fix: handle CancelledError in MCP tool calls to prevent process crash
MCP SDK's anyio cancel scopes can leak CancelledError on timeout or
failure paths. Since CancelledError is a BaseException (not Exception),
it escapes both MCPToolWrapper.execute() and ToolRegistry.execute(),
crashing the agent loop.

Now catches CancelledError and returns a graceful error to the LLM,
while still re-raising genuine task cancellations from /stop.
Also catches general Exception for other MCP failures (connection
drops, invalid responses, etc.).

Related: #1055
2026-03-08 08:05:18 -06:00
TheAutomatic
1421ac501c feat(qq): send messages using markdown payload 2026-03-08 07:04:06 -07:00
VITOHJL
274edc5451 fix(compression): prefer provider prompt token usage 2026-03-08 17:25:59 +08:00
VITOHJL
1b16d48390 fix(loop): update _cumulative_tokens in _save_turn and preserve it in compression methods 2026-03-08 15:26:49 +08:00
VITOHJL
a984e0df37 feat(loop): add history message count logging in compression 2026-03-08 15:23:55 +08:00
VITOHJL
2706d3c317 fix(commands): use max_tokens_output instead of max_tokens from AgentDefaults 2026-03-08 15:20:34 +08:00
VITOHJL
2dcb4de422 fix(commands): update AgentLoop calls to use token-based compression parameters 2026-03-08 15:04:38 +08:00
VITOHJL
dbc518098e refactor: implement token-based context compression mechanism
Major changes:
- Replace message-count-based memory window with token-budget-based compression
- Add max_tokens_input, compression_start_ratio, compression_target_ratio config
- Implement _maybe_compress_history() that triggers based on prompt token usage
- Use _build_compressed_history_view() to provide compressed history to LLM
- Refactor MemoryStore.consolidate() -> consolidate_chunk() for chunk-based compression
- Remove last_consolidated from Session, use _compressed_until metadata instead
- Add background compression scheduling to avoid blocking message processing

Key improvements:
- Compression now based on actual token usage, not arbitrary message counts
- Better handling of long conversations with large context windows
- Non-destructive compression: old messages remain in session, but excluded from prompt
- Automatic compression when history exceeds configured token thresholds
2026-03-08 14:20:16 +08:00
Re-bin
0b68360286 Merge PR #1635: add agent config/workspace CLI support 2026-03-08 03:26:30 +00:00
Re-bin
bf0ab93b06 Merge branch 'main' into pr-1635 2026-03-08 03:24:15 +00:00
Re-bin
fb4f696085 Merge branch 'main' into pr-1635 2026-03-08 03:14:20 +00:00
Re-bin
0a5daf3c86 docs: update readme for multiple instances and cli 2026-03-08 03:03:25 +00:00
Re-bin
7fa0cd437b merge: integrate pr-1581 multi-instance path cleanup 2026-03-08 02:58:28 +00:00
Re-bin
20dfaa5d34 refactor: unify instance path resolution and preserve workspace override 2026-03-08 02:58:25 +00:00
Re-bin
bdac08161b Merge branch 'main' into pr-1581 2026-03-08 02:05:23 +00:00
Re-bin
822d2311e0 docs: update nanobot march news 2026-03-08 01:44:06 +00:00
Re-bin
3ca89d7821 docs: update nanobot news 2026-03-08 01:42:30 +00:00
Re-bin
5a08beee1e fix(slack): handle empty text responses without regressing thread and media support 2026-03-07 16:52:18 +00:00
Re-bin
2e50a98a57 merge main into pr-673 and keep slack empty-text fallback without regressing thread/media support 2026-03-07 16:51:48 +00:00
Xubin Ren
55fb771e1e Merge PR #1677: fix(auth): prevent allowlist bypass via sender_id token splitting
fix(auth): prevent allowlist bypass via sender_id token splitting
2026-03-08 00:37:09 +08:00
Re-bin
057927cd24 fix(auth): prevent allowlist bypass via sender_id token splitting 2026-03-07 16:36:12 +00:00
Re-bin
74066e2823 feat(qq): support group at messages without regressing msg_seq deduplication or startup behavior 2026-03-07 16:22:44 +00:00
Re-bin
3e9c5aa34a merge main into pr-532 and keep qq msg_seq/startup behavior while adding group @message support with regression tests 2026-03-07 16:22:41 +00:00
Re-bin
cf7833176f Merge pull request #1467 from contributors/dingtalk-group-chat-support 2026-03-07 16:07:57 +00:00
Re-bin
4e25ac5c82 test(dingtalk): cover group reply routing 2026-03-07 16:07:57 +00:00
shawn_wxn
73991779b3 fix(dingtalk): use msg_key variable instead of hardcoded 2026-03-08 00:01:08 +08:00
shawn_wxn
caa2aa596d fix(dingtalk): correct msgKey parameter for group messages 2026-03-08 00:01:08 +08:00
shawn_wxn
26670d3e80 feat(dingtalk): add support for group chat messages 2026-03-08 00:01:08 +08:00
Re-bin
3508909ae4 Merge pull request #436 from contributors/preserve-telegram-document-extension 2026-03-07 15:51:53 +00:00
Re-bin
83433198ca Merge main into pr-436 2026-03-07 15:51:53 +00:00
Re-bin
8d35e13162 Merge PR #1476 without regressing Telegram proxy handling 2026-03-07 15:38:28 +00:00
Re-bin
512ccad636 Merge main into pr-1476, keep current Telegram proxy fix 2026-03-07 15:38:27 +00:00
Re-bin
0b520fc67f Merge pull request #1482 from contributors/telegram-topic-support 2026-03-07 15:33:24 +00:00
Re-bin
515b3588af Merge main into pr-1482 2026-03-07 15:33:24 +00:00
Re-bin
8a72931b74 Merge pull request #1535 from contributors/fix-telegram-proxy-crash 2026-03-07 15:11:09 +00:00
Re-bin
a9f3552d6e test(telegram): cover proxy request initialization 2026-03-07 15:11:09 +00:00
Re-bin
369dbec70a Merge branch 'main' into pr-1535 2026-03-07 15:05:54 +00:00
Re-bin
aee358c58e Merge pull request #332 from contributors/feishu-event-handlers 2026-03-07 15:02:06 +00:00
Re-bin
4021f5212c Merge main into pr-332 2026-03-07 15:02:06 +00:00
Re-bin
851e9c06d8 Merge pull request #1655 from contributors/fix-telegram-inline-keyboard-chat-id 2026-03-07 14:53:14 +00:00
Re-bin
43fc59da00 fix: hide internal reasoning in progress 2026-03-07 14:53:14 +00:00
Re-bin
04e4d17a51 Merge remote-tracking branch 'origin/main' into pr-1655 2026-03-07 14:45:28 +00:00