Skip to content
Jupiter documentation
Menu

Session ownership

Which opencode sessions can change a workflow record, and which events in a project affect the workflow.

A Workflow record belongs to one top-level session: the session that ran the command. The sessions that this session starts, such as its subagents, belong to the workflow too. The plugin finds the top-level session of any session by following parentID in opencode's session data.

What ownership decides#

open_ultracode_status answers in every session. Its field ownedByThisSession says whether the session can change the record.

Take over a record#

A session takes over a record by calling open_ultracode_record_intake with adopt: true. The record's sessionId becomes the top-level session of the caller. Continue a workflow in another session has the steps.

Unknown ancestry#

If opencode cannot report a session's parents, the plugin treats the session as part of the workflow. A lookup that fails cannot lock a workflow out of its own record.

Reason#

One record per project is shared by every opencode session in that project. Before 2.1.0 any session could write to it. Check results of unrelated tasks then collected in one record, and one blocked result among them held the gate at blocked.

Source: belikh/OpenUltraCode v2.1.1