From 16c60c9ee782285530ce88f5f36ea5eb7898d1c2 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Thu, 9 Apr 2026 21:47:48 -0400 Subject: refactor(session): extract sharing orchestration (#21759) --- specs/v2/session.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 specs/v2/session.md (limited to 'specs') diff --git a/specs/v2/session.md b/specs/v2/session.md new file mode 100644 index 000000000..cae90ba7c --- /dev/null +++ b/specs/v2/session.md @@ -0,0 +1,17 @@ +# Session API + +## Remove Dedicated `session.init` Route + +The dedicated `POST /session/:sessionID/init` endpoint exists only as a compatibility wrapper around the normal `/init` command flow. + +Current behavior: + +- the route calls `SessionPrompt.command(...)` +- it sends `Command.Default.INIT` +- it does not provide distinct session-core behavior beyond running the existing init command in an existing session + +V2 plan: + +- remove the dedicated `session.init` endpoint +- rely on the normal `/init` command flow instead +- avoid reintroducing `Session.initialize`-style special cases in the session service layer -- cgit v1.2.3