131 Commits

Author SHA1 Message Date
Liang Jiaqing 308153b1c9 reflect: hub connect for put_task; llmcore: softer trim interval, rate-limit as ConnectionError, slower backoff; L3: no project-specific facts 2026-08-10 14:02:51 +08:00
Liang Jiaqing d8d90eef8c fix: abort sets should_stop before close; llmcore skip retry on user stop; hub serve-on-connect + stapp hub optional 2026-08-03 11:44:34 +08:00
Liang Jiaqing 41e1fcebe8 hub: WS peer hub (frontends/hub.py + hub.html) with composer, busy-reject and abort; stapp adopts hub tasks as real bubbles; agentmain tracks all_outputs/_current_queue 2026-08-02 23:18:35 +08:00
Liang Jiaqing 6bed654dce feat: improve conductor files and runtime handling 2026-07-31 21:56:27 +08:00
Liang Jiaqing 0a54c74924 fix: handle invalid mixin placeholder on model reload 2026-07-23 14:18:37 +08:00
Liang Jiaqing 733615d889 fix: sticky llm_no on reload, portal UX, mainland install without Git
- agentmain: keep current LLM across mykey hot-reload by backend.name
- stapp: fix DeltaGenerator leak from ternary, update reopen_page wording
- ga_install: mainland mode skips PortableGit, use NJU python mirror + --no-bin
- ga: block start_long_term_update before turn 10
2026-07-22 23:38:10 +08:00
Liang Jiaqing 400c9ef34f feat(stapp): empty-key boot and portal hot-reload wait
Allow GenericAgent to start with empty mykey, watch subscription
portal writes via list_llms, and app-rerun so sidebar LLM select
refreshes without a manual click. Also harden mykey reimport and
note the fastest tmwebdriver autofill login path.
2026-07-22 20:33:37 +08:00
Jiaqing Liang caa41dd08e refactor(tmwebdriver): remove legacy DOM bridge and guard HTTP origin 2026-07-22 15:48:12 +08:00
Solaris-star e24389eba7 fix: make long-prompt temp files unique under concurrency (#693)
Use pid+nanos for user_prompt temp filename to avoid same-second collisions under concurrent --func / run_subagents.

Fixes #665
2026-07-20 21:54:37 +08:00
dd3xp 5887450e6a Merge upstream main into desktop main 2026-07-14 00:47:12 -04:00
Liang Jiaqing 8553e98723 feat: scale tool-output limits with context_win
Add maxlen_multiplier derived from context_win (capped 3x); drives per-tool
truncation caps and history compression interval. WebScan uses half-increment
growth to avoid saturating its 35000 base. Docs updated for the new coupling.
2026-07-13 09:55:52 +08:00
dd3xp dd174cfd01 Merge origin/main into main 2026-07-07 10:37:48 -04:00
Liang Jiaqing b636a8df61 Refine UltraPlan orchestration workflow 2026-06-30 17:22:16 +08:00
Liang Jiaqing 1e4ca151a7 feat: support --history arg and in-memory intervene/keyinfo injection; add export_history; fix GenericAgent typo 2026-06-27 17:10:33 +08:00
Liang Jiaqing 5de55ea872 feat(ultraplan): add phase/parallel/pipeline orchestrator with phase-tree HTML monitor
- assets/ga_ultraplan.py: 3 primitives (phase/parallel/pipeline), file-first
  message passing, runtime f-string prompt fill, subagent via subprocess,
  nested phase tree + random-port auto-popup HTML panel (1h idle self-destruct)
- agentmain.py: --nolog flag
- llmcore.py: honor log suppression
2026-06-26 15:16:11 +08:00
Liang Jiaqing 5bc4945dcb feat: --func pure function mode for subagent; merge bg launch; refine SOP 2026-06-26 12:03:36 +08:00
Liang Jiaqing 99954324bc feat: generic extra_sys_prompts slot replaces hardcoded commit_signature module 2026-06-20 21:03:38 +08:00
Liang Jiaqing df025ab34f feat: loop mode + idle auto-action in stapp, cleanup launch.pyw
- stapp.py: add loop mode (auto-inject prompt after each reply)
- stapp.py: replace DOM-based idle monitor with st.fragment timer
- stapp.py: i18n for all new UI text and LLM prompts
- launch.pyw: remove inject/get_last_reply_time/idle_monitor, keep only paste hook
- agentmain/ga: raise max_turns 80->180, DANGER thresholds accordingly
- remove obsolete tool_usable_history.json
2026-06-19 19:00:44 +08:00
Liang Jiaqing 21158fff43 Update agent docs and task help 2026-06-16 11:27:31 +08:00
Liang Jiaqing 63128dd5bb Fix reflect loop throttling 2026-06-15 10:01:08 +08:00
Jiaqing Liang 0107f6c6ce Update LLM user agent handling and incubator notes 2026-06-08 15:05:47 +08:00
Liang Jiaqing 8ec764a87e Update agent hints and UI SOP note 2026-06-08 09:28:05 +08:00
Liang Jiaqing 3acd58b36e core: per-instance print injection (no_print), EXIT sentinel for run loop, log name collision fix, checklist poll hard cap 2026-06-04 11:09:54 +08:00
Liang Jiaqing f7c6dba679 feat: bbs key模式2天超时自关; reflect首次立即check; worker交付规范; vision_sop修正 2026-05-31 21:53:09 +08:00
Jiaqing Liang db979aafc8 feat: force non-stream mode for reflect/task, fix BaseSession.ask() return type, broadcast stream/read_timeout in MixinSession 2026-05-28 16:15:41 +08:00
Jiaqing Liang 57b71e995c feat: externalize long user prompts (>1500 chars) to temp file 2026-05-28 15:22:34 +08:00
Jiaqing Liang 795d2d51a2 fix: ensure mykey.py is always importable from llmcore
- Add sys.path.append for llmcore's own directory as fallback
- Remove dead variable _imp_err
- Distinguish missing mykey vs import failure with clear error messages
2026-05-21 18:17:53 +08:00
cv70 e0e7487409 feat: add agent lifecycle hook trigger mechanism 2026-05-21 14:33:56 +08:00
Shen Hao 7298758b18 feat(cli): one-line startup banner showing model name (#400)
Display a concise startup banner with model name when running in interactive TTY mode.
2026-05-16 20:30:49 +08:00
Liang Jiaqing 72d28500a3 fix: cancel→abort, cancel_requested guard, wechatapp use turn/outputs instead of _turn_parts 2026-05-16 18:03:51 +08:00
Liang Jiaqing cebd6a37c9 agentloop yield turn dict marker; agentmain intercepts and tracks per-turn outputs 2026-05-16 17:13:42 +08:00
Jiaqing Liang 5f54d4570f feat(reflect): add init() for runtime args with fallback to env/config 2026-05-12 12:59:30 +08:00
Liang Jiaqing 3ddf4cb6f9 Add lightweight goal mode reflect workflow 2026-05-08 17:28:16 +08:00
Liang Jiaqing 0a2be47c00 refactor: simplify LLM client init with resolve_client; add fast_ask; auto-fold old tasks in TUI 2026-05-07 21:06:14 +08:00
Liang Jiaqing 6fd7e2d7a0 feat: add Textual TUI frontend + minor fixes to agentmain/llmcore/stapp 2026-05-07 17:38:58 +08:00
Jiaqing Liang 27428395e2 refactor: rename GeneraticAgent, default bg for task, add fork history support 2026-05-07 15:12:46 +08:00
Liang Jiaqing b3f1b380f3 feat: agent BBS server + team worker + timeout bump 2026-05-06 18:55:18 +08:00
Jiaqing Liang f50b6507e3 Improve English UI defaults and task timeout 2026-05-06 13:23:33 +08:00
Liang Jiaqing c2918a6e87 feat: add contentSettings cmd to CDP bridge (bypass multi-download dialog); minor agentmain cleanup 2026-05-05 11:57:40 +08:00
Liang Jiaqing 1bf2a530b9 /resume prompt优化(v5) + wechatapp去or空占位 + summary截断80 2026-05-03 16:36:48 +08:00
Liang Jiaqing 2eb69983dd feat: peer_hint mechanism & history folding compression 2026-05-02 20:30:33 +08:00
Liang Jiaqing 2e4775f98a refactor: extract _stream_with_retry, MixinSession failover on stream abort 2026-04-28 17:54:37 +08:00
Liang Jiaqing 86ac99c9dc fix: /resume normalize literal \n to real newlines before regex matching 2026-04-28 09:38:04 +08:00
Liang Jiaqing c82df6e347 refactor: 提取script_dir为模块级变量,清理procmem_sop涉敏感代码 2026-04-27 17:46:31 +08:00
Liang Jiaqing e07c1b046b hotreload mykeys, fix SSE residual block, unify context_win, cleanup 2026-04-26 17:46:24 +08:00
VonEquinox 9da2fb8979 fix(cli): 修复中文退格显示残影 2026-04-24 17:21:04 +08:00
Liang Jiaqing 6e68fa41cf refactor: unify system prompt injection into _openai_stream; disable gpt done_hooks 2026-04-23 20:07:20 +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 4c1268d821 fix: guard all id/call_id fields with or "" to prevent None leaking into payload 2026-04-23 11:00:04 +08:00
Liang Jiaqing 19057fa9eb improve GPT done_hook: require informative summary on completion 2026-04-22 10:53:29 +08:00