Skip to content

Commit

g1t session start takes --harness claude_code, the name the API and the Claude Code plugin use, and still takes claude-code: the plugin's hook sent claude_code, which the CLI refused, so no Claude Code session was ever recorded.

syntaqxcommitted Parentaa4024fBrowse files
3 files+4−20/3 viewed
+1−1
759759 | --- | --- |
760760 | `-i, --issue <ISSUE>` | The issue it works on. |
761761 | `-p, --pull <PULL>` | The pull request it works on. |
762−| `--harness <HARNESS>` | The harness running it. One of `claude-code`, `codex`, `cursor`, `copilot`, `other`. Default: `other`. |
762+| `--harness <HARNESS>` | The harness running it. One of `claude_code`, `codex`, `cursor`, `copilot`, `other`. Default: `other`. |
763763 | `--harness-session-id <ID>` | The harness's own id for the run, which makes starting again return the same session. |
764764 | `-t, --title <TITLE>` | |
765765 | `-b, --branch <BRANCH>` | The branch it works on; the current one when left out. |
+2−0
793793
794794 #[derive(Clone, Copy, Debug, PartialEq, Eq, ValueEnum)]
795795 pub enum Harness {
796+ // Spelled as the API spells it, which is what the plugin sends.
797+ #[value(name = "claude_code", alias = "claude-code")]
796798 ClaudeCode,
797799 Codex,
798800 Cursor,
+1−1
954954 let out = g1t_with(
955955 &mock,
956956 &dir,
957− &["session", "start", "--harness", "claude-code", "--harness-session-id", "cc-9", "--issue", "12", "--json"],
957+ &["session", "start", "--harness", "claude_code", "--harness-session-id", "cc-9", "--issue", "12", "--json"],
958958 &[],
959959 );
960960 assert_eq!(out.code, 0, "{}", out.stderr);