From bebf9f8df5c868e960d15bb8f0fc204cbde893d1 Mon Sep 17 00:00:00 2001 From: Virgil Date: Wed, 1 Apr 2026 21:24:47 +0000 Subject: [PATCH] feat(agentic): add session command aliases Co-Authored-By: Virgil --- pkg/agentic/commands_session.go | 3 +++ pkg/agentic/commands_session_test.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkg/agentic/commands_session.go b/pkg/agentic/commands_session.go index e766906..3e75a06 100644 --- a/pkg/agentic/commands_session.go +++ b/pkg/agentic/commands_session.go @@ -9,8 +9,11 @@ import ( func (s *PrepSubsystem) registerSessionCommands() { c := s.Core() c.Command("session/handoff", core.Command{Description: "Pause a stored session with handoff context", Action: s.cmdSessionHandoff}) + c.Command("agentic:session/handoff", core.Command{Description: "Pause a stored session with handoff context", Action: s.cmdSessionHandoff}) c.Command("session/resume", core.Command{Description: "Resume a paused or handed-off session from local cache", Action: s.cmdSessionResume}) + c.Command("agentic:session/resume", core.Command{Description: "Resume a paused or handed-off session from local cache", Action: s.cmdSessionResume}) c.Command("session/replay", core.Command{Description: "Build replay context for a stored session", Action: s.cmdSessionReplay}) + c.Command("agentic:session/replay", core.Command{Description: "Build replay context for a stored session", Action: s.cmdSessionReplay}) } // core-agent session handoff ses-abc123 --summary="Ready for review" --next-steps="Run the verifier" diff --git a/pkg/agentic/commands_session_test.go b/pkg/agentic/commands_session_test.go index 07e3fff..d2031c1 100644 --- a/pkg/agentic/commands_session_test.go +++ b/pkg/agentic/commands_session_test.go @@ -18,8 +18,11 @@ func TestCommandsSession_RegisterSessionCommands_Good(t *testing.T) { s.registerSessionCommands() assert.Contains(t, c.Commands(), "session/handoff") + assert.Contains(t, c.Commands(), "agentic:session/handoff") assert.Contains(t, c.Commands(), "session/resume") + assert.Contains(t, c.Commands(), "agentic:session/resume") assert.Contains(t, c.Commands(), "session/replay") + assert.Contains(t, c.Commands(), "agentic:session/replay") } func TestCommandsSession_CmdSessionHandoff_Good(t *testing.T) {