Commit Graph

402 Commits

Author SHA1 Message Date
Jiaqing Liang
db3a807141 docs: add link to Datawhale hello-generic-agent tutorial 2026-04-20 16:26:07 +08:00
Jiaqing Liang
116d7d3d23 refactor: plugins dir + opt-in langfuse via __getattr__ guard
- mv langfuse_tracing.py -> plugins/langfuse_tracing.py
- llmcore: load plugin lazily inside __getattr__ when langfuse_config present
  (PEP 562 module __getattr__ naturally fires only once after globals().update)
- llmcore: extract _record_usage() from 4 scattered [Cache] print sites
- agentmain: /resume scans only latest 10 files
2026-04-20 15:56:06 +08:00
totoyang
8e6270e3a3 feat: optional Langfuse tracing for agent execution (#115)
Self-activating langfuse tracing via monkey-patch: independent module, zero impact when langfuse_config unset. Captures LLM generation, tool calls, token usage from SSE streams.

Co-authored-by: totoyang
2026-04-20 15:27:55 +08:00
Jiaqing Liang
adc702d3f8 docs: add GitHub badge linking to GA-Technical-Report (data & reproduction repo) 2026-04-20 12:37:17 +08:00
Jiaqing Liang
765fcb6c2e docs: move disclaimer to License section (less intrusive) 2026-04-20 12:19:29 +08:00
Jiaqing Liang
ae796482e8 docs: add disclaimer about unofficial commercial sites 2026-04-20 12:17:28 +08:00
Liang Jiaqing
63c7c83c51 refactor: update agent loop and tool extraction 2026-04-19 23:21:37 +08:00
Liang Jiaqing
86ca4625ad refactor: simplify HTTP error handling in _openai_stream, add non-stream support, broadcast history in MixinSession 2026-04-19 20:57:07 +08:00
LJQ
d1f4ee9aaf Merge pull request #112 from shenhao-stu/main
feat: add /continue cmd
2026-04-19 19:15:41 +08:00
Shen Hao
8d07a0b4eb feat: Import chatapp_common for command activation
Added import for chatapp_common to enable command functionality.
2026-04-19 19:12:36 +08:00
Shen Hao
faf5c9ce01 feat: Add imports for GeneraticAgent and continue command
Import GeneraticAgent and install continue command.
2026-04-19 19:11:39 +08:00
Shen Hao
9d5e4b18eb feat: update continue_cmd.py 2026-04-19 19:10:38 +08:00
Liang Jiaqing
2d753a6930 improve /resume: use regex to extract history blocks instead of naive tail reading 2026-04-19 17:15:38 +08:00
Liang Jiaqing
745220e62c Revert "Merge pull request #108 from ggandmee-cloud/feat/cch-signing"
This reverts commit 3e61155b33, reversing
changes made to 4abb8e205d.
2026-04-19 16:18:45 +08:00
LJQ
0214388d10 Merge pull request #110 from shenhao-stu/main
update mykey_template.py and add user_agent
2026-04-19 15:40:19 +08:00
Shen Hao
9217fee211 [feat]: Add user agent configuration to llmcore 2026-04-19 15:38:41 +08:00
Shen Hao
7c2785efe2 [config]: update mykey_template.py 2026-04-19 15:37:30 +08:00
LJQ
3e61155b33 Merge pull request #108 from ggandmee-cloud/feat/cch-signing
feat: NativeClaudeSession 在 fake_cc_system_prompt 模式下支持可选 CCH 签名
2026-04-19 15:27:13 +08:00
ggandmee-cloud
c79b1c5140 feat: NativeClaudeSession 加入 CCH 签名
匹配真实 Claude Code 客户端协议,兼容需要验证客户端身份的代理。
2026-04-19 01:20:01 -04:00
Liang Jiaqing
4abb8e205d sys_prompt_en: 去掉强制英文,跟随用户语言 2026-04-19 11:29:30 +08:00
Liang Jiaqing
c6319594c7 清理SOP: web_setup去TM方案, tmwebdriver排查流程优化 2026-04-19 11:16:29 +08:00
Liang Jiaqing
77d44c8cd0 update technical report 2026-04-19 10:03:32 +08:00
Liang Jiaqing
5d015d42c9 update technical report: language polish and table layout improvements 2026-04-18 19:58:56 +08:00
Liang Jiaqing
f8a380d4fd fix: increase default timeout for non-stream mode (10/240s vs 5/30s) 2026-04-18 16:45:37 +08:00
Liang Jiaqing
2632478d96 fix: get_llm_name case-insensitive match & refactor to accept optional backend param 2026-04-18 14:46:05 +08:00
Liang Jiaqing
c529abce3c fix: clarify start_long_term_update should only be called when task is completed (not mid-task) 2026-04-18 13:09:01 +08:00
Liang Jiaqing
11c41e7c4a refine memory_cleanup_sop: 4 compression principles, RULES triage, anti-intuitive trigger words, layered placement 2026-04-18 12:33:41 +08:00
Liang Jiaqing
3c2d22b948 refactor: move chat bubble asset to frontends/ and rename to English 2026-04-18 11:13:38 +08:00
Keeper
5d0d4b7d27 add: right-click of changing skin for desktop pet (#99)
* fix: skin icon size

* fix: skin icon size

* fix: skin icon size

* fix: skin icon size

* fix: skin icon size

* fix: skin icon size

* add: right click logic of changing skin
2026-04-18 11:00:56 +08:00
LJQ
184948b772 Merge pull request #89 from mmgnosit-commits/fix/minimax-timeout-retry
fix(llmcore): 添加MiniMax超时错误码529支持重试机制
2026-04-18 10:59:16 +08:00
weijia
f49d69cf92 fix: 桌宠气泡 (#102)
* refactor: 精简desktop_pet_v2 — 内联_find_bubble_asset、删debug log、去重复RGBA检查

- 内联 _find_bubble_asset() 到 build_bubble_image (减少一层函数调用)
- 删除2处 /tmp/pet_toast_debug.log 写入
- 去除 Mac load_skin 中重复的 RGBA 转换检查
- 所有气泡核心逻辑(ImageOps.contain/非对称padding/alpha crop/tail扫描/定位公式)完整保留
- 785行 → 763行 (-22行)

* fix: 修复气泡文字碰边框问题,基于不透明区域计算文字padding

* feat: 添加自定义聊天气泡图片

* style: shift bubble text up 3px for better visual centering
2026-04-18 10:48:30 +08:00
Liang Jiaqing
ec34b7e1c0 Add technical report link to README 2026-04-18 00:13:48 +08:00
Liang Jiaqing
13b15f3255 Add technical report PDF 2026-04-18 00:09:36 +08:00
Liang Jiaqing
593eaa8cf7 Add Trendshift trending badge to README 2026-04-17 21:12:34 +08:00
Junghwan
adcfb8f730 fix(L4): preserve raw sessions skipped as recent(<2h) (#90)
compress_session.py Phase 4 builds to_del from both processed files
and every skipped file. Phase 1 marks files younger than 2h as
'recent(<2h)' (line 175) so their still-active writer is not
interrupted, but Phase 4 then deletes them anyway.

Filter the skipped-loop by reason so 'recent' files are preserved.
Processed files and other skip reasons (dup, compression error)
still proceed through deletion as before.
2026-04-17 17:35:50 +08:00
Jiaqing Liang
0e3e602121 fix: inline_eval exec() exception escaping crash; update schema description 2026-04-17 16:06:13 +08:00
Jiaqing Liang
47f106c8db refactor: extract slash cmd handler; fix inline_eval param name; support extra_sys_prompt 2026-04-17 15:39:51 +08:00
宋明明
04b4818f87 fix(llmcore): 添加MiniMax超时错误码529支持重试机制
## 问题描述
MiniMax API在请求超时时返回HTTP 529状态码,该状态码未被包含在可重试状态码集合中, 导致即使配置了max_retries参数,重试机制也对MiniMax超时无效。
当前行为:MiniMax 529 → 不重试 → 直接报错
预期行为:MiniMax 529 → 触发重试逻辑 → max_retries生效 ## 解决方案
在llmcore.py的RETRYABLE集合中添加529状态码。 ## 关于其他改动的思考 最初的想法是:将 LLM API 重试的 HTTP 状态码从硬编码提取为可配置文件
assets/http_retry_codes.json,首次运行时自动生成默认配置

### 之前的初衷(配置文件方案)
- ✓ 不修改代码即可适配新的错误码
- ✓ 降低维护成本
### 现实考量(硬编码方案)
- 主流模型厂商就那几家:OpenAI、Claude、MiniMax、Kimi等 -
标准的超时错误码基本固化:408(timeout)、429(rate_limit)、5xx(server_error)
- MiniMax 529是特例但不频繁变化
- 硬编码更简洁直接,维护更清晰

## 受影响范围
- llmcore.py: _openai_stream() 函数的重试机制现在支持MiniMax 529错误
- 对应MiniMax API的超时场景现在能正确触发retry逻辑
2026-04-17 15:09:52 +08:00
Jiaqing Liang
f418963585 refactor: omit temperature from payload when default (1), avoid errors on reasoning models 2026-04-17 13:11:57 +08:00
Liang Jiaqing
9dbb3315da docs: add English-only CONTRIBUTING.md 2026-04-17 10:46:09 +08:00
Liang Jiaqing
b1f72a202e fix: clarify file_write usage — content before call 2026-04-17 00:04:12 +08:00
Liang Jiaqing
aa674655a8 refactor: unify docstrings, add /resume command, simplify error msg 2026-04-16 21:04:04 +08:00
LJQ
e7e560715e Merge pull request #80 from shenhao-stu/main
docs: update mykey_template.py
2026-04-16 19:52:02 +08:00
LJQ
2c0146232a Merge pull request #79 from ViviqwerAsd/docs/update-wechat-group-qrcodes
docs: 更新微信群二维码 (group 5/6/7)
2026-04-16 19:50:42 +08:00
Shen Hao
e4e84f2b43 docs: update mykey_template.py 2026-04-16 19:50:11 +08:00
Xinyi Wang
753bde713f docs: update WeChat group QR codes (group 5/6/7) in README Support section 2026-04-16 19:45:57 +08:00
LJQ
f6deb83fe0 Merge pull request #78 from AspasZhang/feat/update-plan-verify-sop
feat: update plan_sop & verify_sop
2026-04-16 19:18:14 +08:00
Liang Jiaqing
c43c07487f feat: add English version of global_mem_insight_template 2026-04-16 18:52:07 +08:00
Liang Jiaqing
7cadbd7403 feat: i18n support - auto-detect system language for zh/en prompts 2026-04-16 18:47:40 +08:00
张洲嘉
82b8535b7c feat: update plan_sop & verify_sop
- plan_sop: improved planning workflow
- verify_sop: rewritten inspired by Claude Code verification agent design
  - Added two failure mode anchoring (verification avoidance & seduced by first 80%)
  - Anti-rationalization checklist
  - BEFORE PASS/FAIL guardrails
  - Compressed from 104 to 65 lines while increasing coverage
2026-04-16 18:42:03 +08:00