Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

handoff: stop reading bare deepseek as DeepSeek Harness

Claudee1ed16416460
diff --git a/cli/beacon/internal/handoff/dsh_test.go b/cli/beacon/internal/handoff/dsh_test.go
index 2ae23d4b..3c7b95e9 100644
--- a/cli/beacon/internal/handoff/dsh_test.go
+++ b/cli/beacon/internal/handoff/dsh_test.go
@@ -180,11 +180,19 @@ func TestPlanResumeContinuesADSHSessionElsewhere(t *testing.T) {
}
func TestParseHarnessAcceptsDSHNames(t *testing.T) {
- for _, name := range []string{"dsh", "deepseek", "deepseek_harness", "DeepSeek-Harness"} {
+ for _, name := range []string{"dsh", "deepseek_harness", "DeepSeek-Harness"} {
if got, err := ParseHarness(name); err != nil || got != HarnessDSH {
t.Fatalf("ParseHarness(%q) = %q, %v", name, got, err)
}
}
+ // Bare "deepseek" names the vendor. A log row stamped with it stays as it is rather than being
+ // read as DeepSeek Harness, and it is not accepted as a runtime name.
+ if got := canonicalHarness("deepseek"); got != "deepseek" {
+ t.Fatalf("canonicalHarness(deepseek) = %q, want it left alone", got)
+ }
+ if got, err := ParseHarness("deepseek"); err == nil {
+ t.Fatalf("ParseHarness(deepseek) = %q, want an error", got)
+ }
if strings.Contains(strings.Join(StartableNames(), ","), "dsh") {
t.Fatalf("StartableNames = %v, want no dsh", StartableNames())
}
diff --git a/cli/beacon/internal/handoff/runtimes.go b/cli/beacon/internal/handoff/runtimes.go
index d052748e..1bca5cea 100644
--- a/cli/beacon/internal/handoff/runtimes.go
+++ b/cli/beacon/internal/handoff/runtimes.go
@@ -165,10 +165,12 @@ var runtimes = []Runtime{
{
Harness: HarnessDSH,
Label: "DeepSeek Harness",
- Aliases: []string{"dsh", "deepseek"},
+ Aliases: []string{"dsh"},
NewSource: func(dir string) Source { return &dshSource{dir: dir} },
// dsh has no interactive terminal session to start: `--profile headless` answers one task
// and exits, and `dsh web` is a browser UI. Its sessions continue in another runtime.
+ // Bare "deepseek" is not an alias: it names the vendor and its models, and a runtime-log row
+ // stamped with it came from a provider route, not from DeepSeek Harness.
},
// The runtimes below keep no session store Beacon reads. Their sessions come from Beacon's