Skip to content

Allow Luau plugins to customize the main session sidebar #1310

Not planned

Description

@Paliago

I’d like to build a custom session sidebar in Rune using Luau, the way I built my Thread Activity plugin for Electron OpenCode. The Electron version relies on renderer markup. A supported API in Rune would let users build their own sidebar layouts without relying on app internals.

Ideally, a plugin could replace the main session list, choose how sessions are grouped and ordered, render custom rows and nested content, and reuse native actions such as opening a session or showing its context menu. A slot beneath each row would help with inline subagent folding, but full customization would also let users build different layouts around the same session data.

A concrete example: my sidebar groups conversations by project and shows an agent count beneath each parent session. Expanding the count reveals Running and Finished groups that fold independently, so I can keep active work visible and hide completed work. Clicking a subagent opens its session. This only needs native OpenCode subagents.

If a broader plugin API isn’t on the roadmap, a built-in option to show collapsible subagent trees directly beneath their parents would still solve this workflow. #108 added Show subagents in Customize mode, and #1279 notes the remaining placement gap beneath open tabs.

Activity

  1. Paliago commented on Nov 26, 2026

    @Paliago
    Author

    As an idea on what i am looking for here is an image:

    Hex Screenshot 2026-11-26 at 13 06 02
  2. Hona commented on Nov 26, 2026

    @Hona
    Member

    yeah I will make sure we have parity here - the plugin system is likely to changae from Luau to psychoscript
    so until we stabilise where our plugins will land just know it even more experimental than normal.

    otherwise i hope to make this really good in just a few days... :)

  3. Hona commented on Nov 27, 2026

    @Hona
    Member

    Closing this Luau-specific plugin API request as not planned for now.

    As noted above, the plugin runtime is likely transitioning from Luau to psychoscript. Supporting a custom main session sidebar in the current Luau opencode-plugin-spec (1.x) would require locking in a broad new permanent contract surface—sidebar replacement/row-footer slots, full session/subagent listing and status, project metadata, session navigation, native session context menus, and generic ui.* secondary-click handlers—right before the plugin system changes.

    Current workaround & next steps:

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