| Files | Last commit | Last update |
|---|---|---|
fix(bash): detach tty (setsid) + inject sudo/ssh askpass env (unix) - Add askpass_script: PathBuf field to AskpassEnv (Task 3 deferred); start() fills it with PathBuf::new() placeholder — Task 10 sets the real script path before calling set_env. - Add #[cfg(unix)] fn apply_askpass_env to capabilities bash tool that sets SUDO_ASKPASS, SSH_ASKPASS, SSH_ASKPASS_REQUIRE=force, ATOMCODE_ASKPASS_SOCK, ATOMCODE_ASKPASS_TOKEN on the child Command. - In execute(), before cmd.spawn(), inject askpass env when atomcode_askpass::current_env() is Some, and attach a setsid(2) pre_exec hook (mirroring atomcode-core/src/tool/bash.rs) so bash children detach from the TUI's controlling tty — preventing sudo/ssh from racing for /dev/tty. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
feat(v2): wire keep_interrupted_context end-to-end + finish RateLimited auto_resuming Resolves the build breakage left after merging the rate-limit and session-persistence branches: two in-flight features were only half-wired. keep_interrupted_context (Ctrl-C = preserve vs undo): the kernel impl + cancellation tests existed but nothing fed the flag in. Add it to core Config (#[serde(default)] = false), source it at all three BridgeConfig sites (cli + daemon x2), add the field to CodingAgentConfig, and forward it to the kernel Agent builder in both assemble paths (parts/assemble). Users can now enable it via config.toml; default keeps CANCEL = UNDO. auto_resuming: the merge dropped the field on six AgentEvent::RateLimited constructions in kernel/agent.rs and the bridge KEv->CoreEv mapping -- restored with the correct value (true for WaitAndRetry, false for the livelock-fuse and Pause emits) so Pause vs auto-resume countdown renders right end-to-end. Verified: cargo test --no-run --workspace compiles; kernel cancellation suite (7/7) and bridge_config_maps_keep_interrupted_context pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
feat(compaction): cap v2 summary size (MAX_SUMMARY_BYTES + max_tokens) #747 residual on the default engine: the overflow/manual summary had no absolute size ceiling — a runaway model could emit a large (but still < drained-span) summary that bloats the wire every later turn. Add a 64 KiB hard byte cap (push only up to the remaining budget, char-boundary-safe, so even a single giant delta can't inflate the buffer) plus a 16k max_tokens soft cap forwarded to the summary provider. Tests assert both the byte cap (multibyte-safe) and that max_tokens is actually forwarded. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
feat(v2): wire keep_interrupted_context end-to-end + finish RateLimited auto_resuming Resolves the build breakage left after merging the rate-limit and session-persistence branches: two in-flight features were only half-wired. keep_interrupted_context (Ctrl-C = preserve vs undo): the kernel impl + cancellation tests existed but nothing fed the flag in. Add it to core Config (#[serde(default)] = false), source it at all three BridgeConfig sites (cli + daemon x2), add the field to CodingAgentConfig, and forward it to the kernel Agent builder in both assemble paths (parts/assemble). Users can now enable it via config.toml; default keeps CANCEL = UNDO. auto_resuming: the merge dropped the field on six AgentEvent::RateLimited constructions in kernel/agent.rs and the bridge KEv->CoreEv mapping -- restored with the correct value (true for WaitAndRetry, false for the livelock-fuse and Pause emits) so Pause vs auto-resume countdown renders right end-to-end. Verified: cargo test --no-run --workspace compiles; kernel cancellation suite (7/7) and bridge_config_maps_keep_interrupted_context pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
!363 merge release/v4.25.6 into main fix(v2/mcp): 让 .mcp.json 的 trust/autoApprove 真正生效 + "总是"对 MCP 持久 Created-by: duxin Commit-by: Metz;duxin;danmingzhen;cherishsince;strong;Albert-zhw;ylwdev Merged-by: duxin Description: ## 概述 <!-- 简要描述本次 PR 的改动 --> ## 关联 Issue <!-- 本次 PR 解决的 Issue 链接,例如 Fixes #XXX --> ## 变更类型 - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 🔄 重构(无行为变化) - [ ] 📝 文档更新 - [ ] 🧪 评测 / 测试用例 - [ ] 🔧 工具链 / CI 修改 - [ ] 🗑️ 代码清理 ## 测试计划 <!-- 如何进行测试?--> - [ ] cargo build 成功 - [ ] cargo test 通过 - [ ] cargo clippy 无警告 ## 已验证的 Provider <!-- 你在哪些 Provider 上测试过?--> - [ ] OpenAI - [ ] Claude (Anthropic) - [ ] 硅基流动 - [ ] DeepSeek - [ ] OpenRouter - [ ] Ollama ## 检查清单 - [ ] 代码符合 Rust 格式化规范(cargo fmt) - [ ] 改动有对应的或新增的测试覆盖 - [ ] 必要时已更新文档 - [ ] PR 标题遵循 [Conventional Commits](https://www.conventionalcommits.org/) 规范 - [ ] 破坏性变更已在描述中明确说明 See merge request: atomgit_atomcode/atomcode!363 | 4 months ago | |
feat(kernel,providers): fill rate-limit Retry-After from the real response header 429 self-heal countdown now comes from the provider's actual Retry-After response header instead of regex-scraping the error text: - ProviderError gains retry_after_secs; anthropic/openai_compat/ollama capture retry::parse_retry_after(resp.headers()) on the 429 open path BEFORE text() consumes resp. - agent.rs effective_retry_after(&e) = header-first, body 'try again in N' regex as fallback (LiteLLM-style gateways that only put it in the body). Both 429 hint sites use it. +3 unit tests (header wins / body fallback / none). - mid-stream errors + test fixtures set retry_after_secs: None. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
Auto-commit at turn #1 (6 files changed) Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
fix(windows): skip dir.sync_all on Windows — FlushFileBuffers unsupported on dir handles | 4 months ago | |
feat(v2): wire keep_interrupted_context end-to-end + finish RateLimited auto_resuming Resolves the build breakage left after merging the rate-limit and session-persistence branches: two in-flight features were only half-wired. keep_interrupted_context (Ctrl-C = preserve vs undo): the kernel impl + cancellation tests existed but nothing fed the flag in. Add it to core Config (#[serde(default)] = false), source it at all three BridgeConfig sites (cli + daemon x2), add the field to CodingAgentConfig, and forward it to the kernel Agent builder in both assemble paths (parts/assemble). Users can now enable it via config.toml; default keeps CANCEL = UNDO. auto_resuming: the merge dropped the field on six AgentEvent::RateLimited constructions in kernel/agent.rs and the bridge KEv->CoreEv mapping -- restored with the correct value (true for WaitAndRetry, false for the livelock-fuse and Pause emits) so Pause vs auto-resume countdown renders right end-to-end. Verified: cargo test --no-run --workspace compiles; kernel cancellation suite (7/7) and bridge_config_maps_keep_interrupted_context pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
fix(kernel): address code-review of the reasoning→content promotion Adversarial review of fc7a446b surfaced two real issues in the promotion path: - Hook-seam bypass: the promoted body was emitted via rt.emit WITHOUT running the on_text_delta scrub seam, so a redaction/suppression hook that scrubs streamed content would be bypassed — reopening exactly the leak that seam closes. Now the promoted text passes through on_text_delta (cloned first, so a hook that clears it leaves the reasoning intact to be stored as reasoning). New regression test. - Signed reasoning_blocks left dangling: after promotion reasoning = None but reasoning_blocks still carried the same thinking → a thinking-block adapter (Anthropic-style) would echo BOTH a thinking and a text block (double-send), and the message was internally inconsistent. Promotion is now gated to the plain-text reasoning path (reasoning_blocks.is_empty()), leaving signed-block turns untouched. Known/accepted (documented in the review, not regressions): a tag-bearing reasoning_content (<think> passed through) could still be re-stripped by the TUI ThinkStripper — the reported Qwen/atomgit case emits clean reasoning, so unaffected; and a reasoning-only final round in a tool-only subagent now returns the reasoning rather than the last tool result (structurally identical to the real bug, so no clean exclusion exists). Full kernel/capabilities/coding/bridge suites green; atomcode binary builds. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
feat(read,kernel): let read_file hand image files to vision models (v2) A VL model (e.g. Qwen3-VL-8B-Instruct) never actually saw images: read_file sniffed .jpg/.png as binary and returned "Binary file, cannot display as text", and the kernel's ToolResult was text-only, so the picture had no path to the model. The provider already serializes images on user messages (user-pasted image path) — this wires read_file onto that same channel. - kernel: ToolResult gains a transient images carrier (serde-default, additive). The agent loop harvests a tool's images and, AFTER all of an assistant turn's tool_results are pushed (keeping them contiguous / API-valid), injects ONE follow-up synthetic user message carrying them — the only role a provider serializes images on. New Message::synthetic_user_with_images. - capabilities: ReadFileTool gains a vision flag. For a vision model, an image file (jpg/png/gif/webp/bmp, <=4MB) is base64-encoded into the result's images instead of the binary-text dead-end; text-only models and non-image binaries keep the existing text. New is_vision_model() name heuristic and register_coding_tools_with_vision(); base64 made a normal dep. - coding: parts.rs / assemble.rs gate read_file vision on is_vision_model(model). Tests: kernel multimodal (tool image -> user message after tool_result, RED-verified); capabilities read (vision encodes, text-only/non-image don't); is_vision_model family matrix. Full v2 binary builds; kernel/capabilities/ coding/bridge suites green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
Merge pr_98: 三代理模式(follow_system/default_proxy/no_proxy)进 release/v4.25.7 解决 5 个冲突文件。pr_98 从旧 main 分叉,故 event_loop 等处无关漂移一律取 HEAD(HistoryEntry.pastes / ApprovalNeeded.snapshot / GoalUpdate handler / compacting spinner)。 真冲突:commands.rs import 取并集(FileViewer + ProxyPicker);modals/mod.rs 去重 mod qr 保留 password;lib.rs 只取 proxy 丢弃冗余的 core 侧 pricing(真 pricing 在 atomcode-tuix)。web_fetch 删 pr_98 死代码 client,改在 per-hop build_client 应用代理策略。 合并副作用修复:version_check.rs crate::proxy -> atomcode_core::proxy;7 处测试 helper 的 Config{} 补 network 字段。 验证:atomcode 全二进制依赖树(v1+v2+daemon+TUI+CLI)编译通过;proxy 单测 3/3、改动的 12 个 event_loop 测试全过。v2 引擎代理由进程 env 层覆盖,per-client .no_proxy() 双保险留作后续。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Provider-URL: https://gitcode.com/atomgit_atomcode/atomcode | 4 months ago | |
refactor(tuix): extract submit_agent_turn & sync_local_session_switch; add self-echo guard for SessionSwitched | 4 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago |