Skip to content

Commit 095f47c

Browse files
committed
chore(api): add typings to fork_session
1 parent f0d5416 commit 095f47c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/opencode/api.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,8 @@ function M.timeline()
702702
end)
703703
end
704704

705+
--- Forks the current session from a specific user message.
706+
---@param message_id? string The ID of the user message to fork from. If not provided, uses the last user message.
705707
function M.fork_session(message_id)
706708
if not state.active_session then
707709
vim.notify('No active session to fork', vim.log.levels.WARN)

0 commit comments

Comments
 (0)