mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-21 05:10:58 +08:00
609 B
609 B
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.initendpoint - rely on the normal
/initcommand flow instead - avoid reintroducing
Session.initialize-style special cases in the session service layer