Skip to content

Commit dd6296c

Browse files
alecthomasclaude
andauthored
fix: revert opencode agent and fix lefthook config (#22)
## Summary - Reverts the opencode agent support added in #18 (duplicate entry) - Fixes lefthook pre-commit config: removes `parallel: true` and adds `stage_fixed: true` to fmt job 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Code <noreply@anthropic.com>
1 parent 0d5a1c7 commit dd6296c

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

lefthook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ output:
44
- failure
55

66
pre-commit:
7-
parallel: true
87
jobs:
98
- name: fmt
9+
stage_fixed: true
1010
run: just fmt
1111
pre-push:
1212
parallel: true

src/agent.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,6 @@ pub const KNOWN_AGENTS: &[Agent] = &[
9797
email: "opencode <noreply@opencode.ai>",
9898
..Agent::default()
9999
},
100-
Agent {
101-
process_names: &["opencode"],
102-
env_vars: &[],
103-
email: "OpenCode <noreply@opencode.ai>",
104-
breadcrumb_dir: None,
105-
breadcrumb_ext: None,
106-
},
107100
];
108101

109102
impl Agent {

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ mod tests {
316316
assert!(Agent::find_by_name("/opt/homebrew/bin/amp").is_some());
317317
assert!(Agent::find_by_name("gemini").is_some());
318318
assert!(Agent::find_by_name("goose").is_some());
319-
assert!(Agent::find_by_name("opencode").is_some());
320319
assert!(Agent::find_by_name("unknown").is_none());
321320
}
322321

0 commit comments

Comments
 (0)