Commit Graph

6 Commits

Author SHA1 Message Date
Claude
8ba51086d8 fix(core): harden workspace and media handling
Make local workspace init opt-in and tighten media, session close, and workdir concurrency paths uncovered by the post-merge review.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 11:08:17 +08:00
Shawn
b5298b020e fix(agent): capture workDir under mutex in qoder + cursor StartSession (#945)
StartSession in agent/qoder and agent/cursor read a.workDir without
holding a.mu, while SetWorkDir writes a.workDir under the lock. With
/dir live workspace switching the two paths run concurrently, which
the Go race detector flags as a data race.

Move the field read into the existing critical section alongside the
other captured agent state (mode, model, cmd, sessionEnv), then pass
the local copy down to newQoderSession / newCursorSession. Adds a
regression test per agent that fires SetWorkDir and StartSession in
parallel; under -race the buggy code deterministically fails with
"race detected during execution of test", while the fix passes
cleanly.

The session constructors only initialise structs (the CLI is not
spawned until Send), so the new tests run without requiring qodercli
or the Cursor agent binary on PATH.
2026-05-18 10:24:18 +08:00
Gaoyuan-SIAT
f04c7c51cd feat: add /dir command for dynamic work directory switching 2026-03-16 12:08:41 +08:00
chenhg5
645aaebd1c refactor(core): replace hardcoded agent checks with interface and improve platform-agnostic design
- Replace hardcoded agent binary checks with AgentDoctorInfo interface
- Remove platform-specific logic from help card rendering
- Rename MarkdownToTelegramHTML to MarkdownToSimpleHTML for broader use
- Clean up core engine code to avoid platform/agent name hardcoding
- Add CLIBinaryName and CLIDisplayName methods to agent implementations
- Consolidate help card rendering logic to be platform-agnostic

generated by llmgit

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-13 17:21:14 +08:00
chenhg5
ca728fbe70 feat: add SkillProvider support for codex, cursor, qoder agents
Extend skill discovery to remaining agents:
- codex: .codex/skills + .claude/skills + CODEX_HOME/skills
- cursor: .claude/skills (project + home)
- qoder: .claude/skills (project + home)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 09:02:39 +08:00
chenhg5
cca838504a feat(qoder): add Qoder CLI agent support
generated by llmgit

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-03 22:43:20 +08:00