5 Commits

Author SHA1 Message Date
MuziIsabel
3b93c6137d fix(sandbox): patch Popen + block startfile to prevent window leaks
subprocess.run was already patched with CREATE_NO_WINDOW, but Popen and
os.startfile were unprotected. Agent code could open visible GUI windows
via subprocess.Popen(['notepad.exe']) or os.startfile().
2026-04-25 10:59:15 +08:00
Liang Jiaqing
8d537e954b 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
08ac18be6e fix: code_run encoding compat; wechat truncate long code blocks & limit msg count 2026-03-29 17:43:06 +08:00
Liang Jiaqing
52151853b3 fix: encode str input when text=True is intercepted by header wrapper 2026-03-29 15:15:35 +08:00
Liang Jiaqing
651e0d2bc8 refactor: extract code_run header to external file, add subprocess gbk fallback patch 2026-03-24 09:52:55 +08:00