Commit Graph
106 Commits
Author SHA1 Message Date
Liang Jiaqing 2eb69983dd feat: peer_hint mechanism & history folding compression 2026-05-02 20:30:33 +08:00
Liang Jiaqing 74831f83f7 fix: non-greedy file_content extraction, empty response retry limit, vision template pass 2026-05-02 12:59:40 +08:00
Liang Jiaqing 913a90bc63 fix: sanitize backticks in code_run output & simplify subagent turn header 2026-04-29 18:26:16 +08:00
Liang Jiaqing 4e41b15972 统一流重试行为: 不管mixin/非mixin中途断连都重试; 更新ga.py错误检测条件 2026-04-28 20:41:14 +08:00
Liang Jiaqing c82df6e347 refactor: 提取script_dir为模块级变量,清理procmem_sop涉敏感代码 2026-04-27 17:46:31 +08:00
Liang Jiaqing fc78d06156 file_read: add PARTIAL hint when count < total lines 2026-04-26 20:11:00 +08:00
Liang Jiaqing 2575daf9a6 improve ask_user tool display and memory SOP prompt 2026-04-26 18:24:21 +08:00
Liang Jiaqing e07c1b046b hotreload mykeys, fix SSE residual block, unify context_win, cleanup 2026-04-26 17:46:24 +08:00
Liang Jiaqing 492d55788a feat: reasoning/thinking互通适配 + history窗口扩大 + summary提示强化 2026-04-25 10:33:42 +08:00
Liang Jiaqing 29d5ca928c fix: thinking非空时不再误判为空响应触发重试 2026-04-24 10:00:23 +08:00
Jiaqing Liang a5aca5988e fix: add requests to pip install & tune max_turns/prompt 2026-04-23 17:21:22 +08:00
Liang Jiaqing 5b886ccf7b fix: agent-level retry for intermittent SSL errors during streaming
- llmcore: prefix all error outputs with !!! marker
- ga: detect !!!Error: [SSL: in tail of content as incomplete response and retry
- add len(content)>100 guard to avoid false positives on short responses
2026-04-23 11:24:54 +08:00
Liang Jiaqing 777c517949 refactor: update agent loop and tool extraction 2026-04-19 23:21:37 +08:00
Jiaqing Liang 5b595e9ca5 fix: inline_eval exec() exception escaping crash; update schema description 2026-04-17 16:06:13 +08:00
Liang Jiaqing 51ed38c6c0 fix: clarify file_write usage — content before call 2026-04-17 00:04:12 +08:00
Liang Jiaqing ca76daddd3 refactor: unify docstrings, add /resume command, simplify error msg 2026-04-16 21:04:04 +08:00
Liang Jiaqing a1d8304457 feat: i18n support - auto-detect system language for zh/en prompts 2026-04-16 18:47:40 +08:00
Liang Jiaqing 16329ffdc1 fix: empty file ZeroDivisionError in file_read; remove SiderLLMSession; init global_mem with header 2026-04-16 16:04:18 +08:00
Liang Jiaqing ce72054a09 feat: multi code_run support, inline_eval logging & cwd fix, tool reinject upgrade 2026-04-16 12:56:17 +08:00
Liang Jiaqing c5280fedb5 feat(file_read): fuzzy file suggestion on not-found with history dirs; sync L1 template 2026-04-15 20:58:29 +08:00
Jiaqing Liang 731b3c7baa feat: add plan mode (enter/exit/completion check/verification gate/periodic hints) 2026-04-15 17:02:54 +08:00
Jiaqing Liang d0d9741319 fix prompt flow 2026-04-15 13:57:36 +08:00
Liang Jiaqing a7d6e24204 fix: use script_dir for cwd path instead of relative path 2026-04-14 23:38:32 +08:00
Liang Jiaqing da66c34a4a refactor: turn_end_callback + desktop pet + keychain
- agent_loop: next_prompt_patcher -> turn_end_callback with full context
- agent_loop: exit logic unified (break + callback), no early return
- ga: summary extraction moved from tool_after_callback to turn_end_callback
- ga: _turn_end_hooks support for external subscribers
- stapp: desktop pet button with HTTP status push
- keychain: XOR-masked secret storage with SecretStr
- gitignore: whitelist keychain.py
2026-04-13 18:27:17 +08:00
Liang Jiaqing 31e0dfaa48 feat: task模式干预机制 _stop/_keyinfo/_intervene + consume_file 2026-04-11 17:14:35 +08:00
Liang Jiaqing fae8c72fcf fix: restore stop signal detection broken by render_segments cache optimization
- stapp.py: add st.empty() after render_segments to force Streamlit StopException check on every iteration (incl. heartbeat)
- agentmain.py: fix nround type check, fix timeout comment
2026-04-11 16:25:19 +08:00
Liang Jiaqing 973befeeca fix: _fix_messages for Claude API compliance, raw_ask simplify, no_tool orphan fix, summary extraction improvement 2026-04-11 13:24:33 +08:00
Jiaqing Liang 33af178b04 fix: handle window object serialization in CDP bridge; improve file_write error msg; minor llmcore style cleanup 2026-04-10 14:04:41 +08:00
Liang Jiaqing bd4e7de7ac Fix tool call conversion and working checkpoint result 2026-04-10 10:45:00 +08:00
Liang Jiaqing 86e83c1b96 fix: verbose logic & insight wording & file_read anchor skip 2026-04-10 09:56:22 +08:00
Liang Jiaqing 6f63ebf6be Refactor: simplify smart_format to string-only and enhance tool output truncation limits 2026-04-06 22:50:23 +08:00
Liang Jiaqing f593c1be15 smart truncation, iframe preservation, streamlit filter
- simphtml: truncate_biggest replaces naive string cut, targets fattest content block via 70% drill-down
- simphtml: iframe children preserved through div proxy (bypass BS4 limitation)
- background/content.js: filter streamlit tabs and skip content script injection
- ga.py: file_content tag regex allows attributes; maxchars 38k->35k
2026-04-06 12:19:20 +08:00
Liang Jiaqing 2324fd68f4 refactor(simphtml): rewrite list detection & cutlist for multi-list support
- simphtml: replace center-point ancestor-chain approach with global container scan;
  support multiple lists per page; add container-scoped selector prefixes;
  inline FAKE ELEMENT hints with hidden item previews; remove findMainContent
- ga: hot-reload simphtml on each web_scan; fix file_read total_lines for keyword search;
  add errors='replace' for global_mem encoding safety
- llmcore: stabilize NativeClaude session/device IDs across requests;
  rename no_system_prompt to fake_cc_system_prompt; deep-copy message content
- launch: adjust window width 700->600
2026-04-03 19:38:51 +08:00
Liang Jiaqing 54171adace feat: fold_turns UI折叠 + 放宽输出限制 + 压缩history/key_info标签 + context_win调大 2026-04-03 10:43:15 +08:00
Liang Jiaqing 94a3b14b70 fix: simphtml visibility/dialog/SVG improvements & minor agent fixes
- simphtml: rewrite visibility inheritance (area-based maxC), add isVisible to childrenInfo,
  fix className SVG compat (getAttribute), expand isDialog detection, hoist deep fixed dialogs,
  clear SVG attrs, fix warning message concat
- ga: return error messages instead of None for code_run/web_execute_js failures
- stapp: disable unsafe_allow_html
- code_run_header: add excepthook hint for ImportError/AttributeError
- mykey_template: remove stale prompt_cache comment
2026-04-03 09:40:09 +08:00
Liang Jiaqing ffbde98952 Refactor: 统一消息格式和Session架构重构
核心改动:
- 统一所有Session内部使用Claude content-block格式
- 引入BaseSession基类,简化代码结构
- tool_results从字符串改为结构化字典列表
- NativeClaudeSession增强:支持cr_token、metadata、thinking提取
- ToolClient简化:删除structured分支,统一使用protocol prompt
- MixinSession支持按名称选择session
- ljqCtrl_sop增加DPI坐标陷阱警告
2026-04-01 22:20:18 +08:00
Liang Jiaqing cdaa263229 fix: llmcore工具调用正则兼容tool_call标签,最小长度改为0 2026-04-01 09:30:55 +08:00
Liang Jiaqing d6fc033cf7 refactor: agent loop done_hooks, inline_eval, scheduler logging & health_check
- agent_loop: for→while, _done_hooks callback mechanism, max_turns=40
- agentmain: pass self to handler, abort clears task queue
- stapp: heartbeat yield for Streamlit StopException detection
- ga: _inline_eval param for in-process eval, no_tool thresholds tuned
- scheduler: logging, max_delay_hours, weekday repeat, health_check()
2026-03-30 13:51:21 +08:00
Liang Jiaqing 19a8fdfbc0 refine: tool schema descriptions, docstring format, context_win 18000→20000 2026-03-29 13:06:06 +08:00
Liang Jiaqing babbada857 refactor: remove XAI/Gemini sessions, add MixinSession fallback, improve error handling
- Remove GeminiSession and XaiSession from llmcore.py
- Add MixinSession: multi-endpoint fallback with exponential backoff
- ga.py: handle empty/incomplete/max_tokens responses
- Update mykey_template.py and GETTING_STARTED.md accordingly
2026-03-28 08:14:35 +08:00
Liang Jiaqing 47160dcc01 refactor: optimize code extraction priority in tool handlers & update autofill SOP 2026-03-27 19:43:46 +08:00
Liang Jiaqing 9e3f01a807 refine: context window, timeout, abort guard, code_run multi-call check, clean logs 2026-03-26 21:31:48 +08:00
Liang Jiaqing c7bcf713b4 minor: tweak prompt wording, improve OAI history compression 2026-03-25 10:00:16 +08:00
Liang Jiaqing 77cd50a0b8 fix: always compress history tags, adjust context trim thresholds 2026-03-25 08:37:46 +08:00
Liang Jiaqing 5a522d8b42 refactor: extract code_run header to external file, add subprocess gbk fallback patch 2026-03-24 09:52:55 +08:00
Liang Jiaqing 0b3c3ba38a code_run自动注入常用import+memory路径; ljqCtrl_sop补充文本输入方法 2026-03-24 00:00:20 +08:00
Liang Jiaqing e41983a4fd feat(wechat): add send_file via CDN upload; fix _strip_md robustness
- Add WxBotClient.send_file() with AES-128-ECB encryption and CDN upload
- Extract [FILE:] tags before _clean() to preserve filenames
- Fix _strip_md: support 3+ backticks via backreference, stop stripping underscores
- Remove verbose key_info echo from update_working_checkpoint
2026-03-23 17:55:20 +08:00
Jiaqing Liang 0e06bdf411 feat: add file ref expansion syntax for file_patch and file_write 2026-03-23 13:50:11 +08:00
Liang Jiaqing ffd847a6a8 feat: add NativeOAISession + minor fixes (code_run script fallback, thinking prompt tags) 2026-03-22 22:19:46 +08:00
Liang Jiaqing 80b8d35d80 add NativeClaudeSession+NativeToolClient, support parallel tool calls, fix tool_calls[-1:], add llm log 2026-03-21 12:13:46 +08:00