GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(plugin): support parent session creation by opencode-agent[bot] · Pull Request #52359 · anomalyco/opencode

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Forward parentID through plugin and HTTP session.create, so children inherit the parent's Location rather than becoming root sessions. Missing parents return the declared 404.
  • Regenerate the public clients and test the plugin, HTTP, and Promise-client paths.
  • Replace feat(plugin): support parent session creation #47745 with a clean branch from current v2. The original work is credited to @dbpolito as a commit co-author; no MDX documentation edits are carried over.

Related issues

  • Addresses item 3 only of [FEATURE]: Five session capabilities that exist in core but are unreachable from a plugin #49389; the other session API requests remain open.
  • Related to [FEATURE]: Add explicit hidden or ephemeral sessions for plugin background tasks #40863's child-session use case. This does not add hidden or ephemeral session behavior.

Verification

  • bun run generate in packages/client
  • Plugin child-session test, HTTP create/import tests, and Promise-client serialization test pass.
  • Scoped Core, Protocol, Server, Client, and Plugin typechecks pass.
  • Full repository bun run check could not complete: the unrelated Posts package requires Node >=22.12.0; this host has Node 18.19.1.

Requested by: @rekram1-node (Aiden via Slack)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node @dbpolito @opencode-agent
feat(plugin): support parent session creation
d3a1560
Co-authored-by: dbpolito <[email protected]>
@opencode-agent opencode-agent Bot assigned rekram1-node Sep 30, 2026
@github-actions github-actions Bot added the contributor label Sep 30, 2026
@opencode-agent opencode-agent Bot mentioned this pull request Sep 30, 2026
feat(plugin): support parent session creation #47745
Closed
3 of 6 tasks
@rekram1-node
rekram1-node merged commit 19f2038 into v2 Oct 1, 2026
9 of 10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the pr47745-child-session branch October 1, 2026 03:50
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
@opencode-agent @rekram1-node @dbpolito
feat(plugin): support parent session creation (anomalyco#52359)
c174a3f
Co-authored-by: rekram1-node <[email protected]>
Co-authored-by: dbpolito <[email protected]>
@ivanfenenko ivanfenenko mentioned this pull request Oct 11, 2026
OPE-277: Per-turn diff and sub-sessions (v2) opencode-mobile/opencode-mobile#551
Closed
3 tasks done
@mradwankhalil mradwankhalil mentioned this pull request Oct 15, 2026
[Bug]: OpenCode V2 adapter (#9016) drops parentID on session.create, so task and background subagent sessions appear top-level code-yeongyu/oh-my-openagent#10173
Open
mradwankhalil added a commit to mradwankhalil/oh-my-openagent that referenced this pull request Oct 19, 2026
@mradwankhalil
fix(opencode-v2): forward the native parentID when the adapter create…
77cae38
…s a child session

The V1 facade's session.create read body.parentID but only stored it as
metadata.omoParentID and in adapter memory. The native OpenCode V2 create call
never received parentID, so every session spawned by task / call_omo_agent /
background agents was persisted with parent_id NULL and showed up as a
top-level session in the UI. OMO itself did not notice because withParent and
childSessions rebuilt the link from metadata.

Pass parentID to the native create (supported since OpenCode v2.0.22,
anomalyco/opencode#52359). The native host places a child at its parent's
location and ignores location when parentID is set, so a child that asked for a
different directory (team worktree, task cwd) is moved there with session.move
right after creation. The metadata and adapter-state bookkeeping are kept.
@linear-code linear-code Bot mentioned this pull request Oct 20, 2026
#551 Per-turn diff and parent link on v2 opencode-mobile/opencode-mobile#775
Merged
@opencodejr opencodejr Bot mentioned this pull request Oct 28, 2026
[FEATURE]: Five session capabilities that exist in core but are unreachable from a plugin #49389
Open
1 task done
@kitlangton kitlangton mentioned this pull request Nov 4, 2026
feat(core): let child sessions start in their own worktrees #61828
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@rekram1-node rekram1-node

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rekram1-node
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.