Skip to content

[Feature Request] Treat agent-opened sessions as supervised workers unless they are an explicit handoff #529

Description

@slashdevcorpse

Affected area

Desktop app / mobile as well

Problem or workflow pressure

lody_session_create always mints a first-class sidebar chat. openedBySessionId only indents it. Each opened Session stays unread until opened, fires its own completion and permission notifications, and the parent shows "Session created" instead of the result.

Desired outcome

Supervised work stays on the current Session. A panel lists opened workers with count, status, and a short result. Summaries, unread, and alerts attach to the parent. Finished workers can be settled out of the active list without deleting. Handoff is the explicit path that creates a peer Session the user means to own. The inbox is only for conversations under human supervision.

Proposed solution

Keep a separate Session document when workContext needs its own directory. Default MCP create without an explicit handoff to this supervised presentation, with optional drill-in. Render the Operation output on the parent. Add settle and dismiss-all-opened there. Do not default to useCurrentSessionAsParent, which reuses the workspace directory. Ship attention (unread and notifications roll to the parent, including permission waits) before the panel if the work must split.

Alternatives or workarounds

Child tabs (useCurrentSessionAsParent) hide the sidebar row but share the workspace, so they cannot isolate concurrent file work. Muting notifications or marking each row read by hand hides permission waits and does not give a parent summary or a single close.

Trade-offs or non-goals

Do not drop phone-only or handoff Sessions the user asked for. Do not treat machine liveness as "the user is in the parent". Permission prompts from supervised workers must still reach the parent. Isolated execution may remain a separate document. The change is attention, summary, and lifecycle. CLI/MCP archive cascade is a separate bug.

Additional context

openedBySessionId and the Operation completion preview already exist. They are not used as a worker roster. Turn completion writes lastMessageAt without lastReadAt. notifySessionCompleted has no opened-by skip. Related: #527 is attended desktop versus phone, not this inbox model.

Before submitting

  • I searched the existing issues and did not find a duplicate request.
  • This request concerns an open-source component in this repository, not a hosted service, Web or mobile app, account, or billing issue.
  • I removed credentials, private source, conversations, prompts, personal data, and other sensitive information.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions