Skip to content

Tool visibility should respect session permission filters across runtime and experimental endpoints #17090

Closed as not planned

Description

@jackoatmon

Problem

Tool visibility can drift from enforceable permissions:

  • runtime may advertise tools that are denied by session-level permission rules
  • /experimental/tool and /experimental/tool/ids can list tools without applying agent/session permission context
  • generated SDK query types did not expose the optional permission-context fields

Expected

Tool lists shown to models and API clients should only include tools that are actually invokable under merged agent + session permissions.

Scope

  • runtime LLM tool filtering path
  • experimental tool listing endpoints
  • generated SDK query contract for optional provider, model, agent, sessionID

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 11, 2026
  2. github-actions commented on Mar 11, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • No issue template was used. Please resubmit using one of the three required templates: Bug Report, Feature Request (title must start with [FEATURE]:), or Question. Each template has required fields that must be filled in.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. github-actions commented on Mar 11, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions