fix: permanently resolve agent name duplication yo-yo bug
This commit is contained in:
@@ -6,6 +6,8 @@ import {
|
||||
updateSessionAgent,
|
||||
setMainSession,
|
||||
getMainSessionID,
|
||||
registerAgentName,
|
||||
isAgentRegistered,
|
||||
_resetForTesting,
|
||||
} from "./state"
|
||||
|
||||
@@ -102,6 +104,17 @@ describe("claude-code-session-state", () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe("agent registration", () => {
|
||||
test("should register config-key lookup when given a display name", () => {
|
||||
// given
|
||||
registerAgentName("Atlas (Plan Executor)")
|
||||
|
||||
// when / then
|
||||
expect(isAgentRegistered("atlas")).toBe(true)
|
||||
expect(isAgentRegistered("Atlas (Plan Executor)")).toBe(true)
|
||||
})
|
||||
})
|
||||
|
||||
describe("prometheus-md-only integration scenario", () => {
|
||||
test("should correctly identify Prometheus agent for permission checks", () => {
|
||||
// given - Prometheus session
|
||||
|
||||
Reference in New Issue
Block a user