Skip to content

feat: expose plan metadata to plugins via question.asked event #9865

Closed

Description

@backnotprop

Summary

Plugins currently cannot access the plan file content when intercepting the plan_exit tool's question dialog. The question.asked event only contains the session ID and question text.

Use Case

Plugins like Plannotator need to intercept the plan approval dialog to show an interactive plan review UI instead of a simple Yes/No dialog. To do this, they need access to:

  • The plan file path
  • The plan file content

Proposed Solution

Add an optional metadata field to the QuestionRequest schema that plan_exit can use to pass plan information to plugins.

// Plugin can then access:
event.properties.metadata?.planPath
event.properties.metadata?.planRelativePath  
event.properties.metadata?.planContent

Additional Context

This is for the experimental plan mode (OPENCODE_EXPERIMENTAL_PLAN_MODE=1).

Activity

  1. backnotprop commented on Jan 28, 2026

    @backnotprop
    ContributorAuthor

    ping chaching

  2. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

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

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

Metadata

Metadata

Assignees

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