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 — [FEATURE]: Add explicit hidden or ephemeral sessions for plugin background tasks · Issue #40863 · anomalyco/opencode

[FEATURE]: Add explicit hidden or ephemeral sessions for plugin background tasks #40863

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Add explicit hidden or ephemeral sessions for plugin background tasks#40863
Copy link
Assignees
kitlangton

Description

@cioffiAI
cioffiAI
opened on Aug 6, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Plugins sometimes need to run LLM tasks in the background without exposing those tasks as normal user conversations.

I built a local long-term memory plugin that uses this pattern:

  1. Wait for a user session to become idle.
  2. Create a child session with parentID.
  3. Send a constrained consolidation prompt.
  4. Read and persist the result.
  5. Delete the child session.

This works, but it relies on child sessions being excluded from user-facing root session lists. parentID represents hierarchy; it does not explicitly guarantee that a session is hidden, temporary, or automatically cleaned up.

A child session can still appear in unfiltered session queries and may remain orphaned if the process exits before cleanup.

I would like to propose an explicit opt-in property when creating a session, for example:

client.session.create({
  body: {
    title: "memory-consolidation",
    parentID,
    hidden: true,
    ephemeral: true,
  },
})

Possible semantics:

hidden: true excludes the session from normal user-facing session lists and pickers.
Hidden sessions remain accessible by exact ID and through an explicit includeHidden query option.
ephemeral: true allows automatic cleanup after completion, cancellation, process restart, or a configurable TTL.
parentID remains independent from visibility and lifetime.
Existing session behavior remains unchanged unless these options are enabled.

This would support background use cases such as:

memory consolidation;
indexing and context extraction;
automated summaries;
evaluation or validation passes;
plugin-managed background agents.

I have a working plugin and end-to-end tests demonstrating that child sessions can execute prompts, remain absent from root session listings, return structured results, and be deleted after completion.

Related discussions include #19999 and #20849, but this request is intentionally narrower: it concerns only session visibility and lifecycle for plugin-created background tasks.

I am happy to contribute documentation and tests first, or an implementation after the maintainers confirm the preferred API and semantics.

Activity

  1. github-actions
    assigned
    kitlangton
    on Aug 6, 2026
  2. github-actions commented on Aug 6, 2026

    @github-actions
    github-actionsBot
    on Aug 6, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Support session visibility independently of parentage #39911: Covers session visibility independently of parentage — the maintainer-authored issue describes nearly the same hidden visibility concept and API shape you are proposing.
    • [FEATURE]: Ephemeral one‑off sessions for opencode run (happy to implement) #4489: Covers ephemeral one-off sessions (auto-cleanup after completion) for opencode run, which overlaps with your ephemeral: true proposal.
  3. github-actions commented on Oct 7, 2026

    @github-actions
    github-actionsBot
    on Oct 7, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  4. github-actions
    closed this as not plannedon Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kitlangton
    kitlangton

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

    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.