Skip to content

Add OpenCode Panel plugin - #286

Open
weinguyen1224-glitch wants to merge 9 commits into
noctalia-dev:mainfrom
weinguyen1224-glitch:add-plugin/opencode-panel
Open

Add OpenCode Panel plugin#286
weinguyen1224-glitch wants to merge 9 commits into
noctalia-dev:mainfrom
weinguyen1224-glitch:add-plugin/opencode-panel

Conversation

@weinguyen1224-glitch

@weinguyen1224-glitch weinguyen1224-glitch commented Aug 6, 2026

Copy link
Copy Markdown

Introduce initial implementation of the OpenCode Panel plugin. This commit includes:

  • Bar widget for status and quick actions.
  • Chat panel with session selection, message history, and input.
  • Background service for OpenCode server management, SSE event handling, and state persistence.
  • Plugin configuration, documentation, and internationalization.

Plugin

  • Id: <author>/<plugin>
  • New plugin
  • Update to an existing plugin (version bumped in plugin.toml)

What it does

External dependencies

Testing

  • Tested on Niri
  • Tested on Hyprland
  • Tested on Sway
  • Tested on another compositor:
  • Noctalia version tested against:
  • Plugin API level:

Screenshots / Videos

Checklist

  • The directory name matches the part of id after the / in plugin.toml exactly.
  • It ships plugin.toml, README.md, thumbnail.webp, and translations/en.json.
  • README.md follows the
    README template, documents
    every entry id and dependency, and includes exact panel IPC commands and launcher prefixes where applicable.
  • I created thumbnail.webp with the thumbnail generator.
  • version follows semver and is bumped in this PR; plugin_api is the oldest API level this plugin requires.
  • Every non-English translation in this PR uses a locale supported by Noctalia core, and I can read, write, and
    understand that language well enough to review and maintain it (no unreviewed machine/LLM translations).
  • I did not edit catalog.toml; CI generates it.
  • This PR touches exactly one plugin directory.

Code review attestation

Plugins run as trusted, unsandboxed Luau in the user's session. Confirm:

  • The code is readable and not obfuscated, minified, or generated.
  • It does not download and execute remote code.
  • Every network call, filesystem write, and spawned process is something the description above accounts for.
  • I have the right to publish this code under the license declared in plugin.toml.

Introduce initial implementation of the OpenCode Panel plugin.
This commit includes:
- Bar widget for status and quick actions.
- Chat panel with session selection, message history, and input.
- Background service for OpenCode server management, SSE event
  handling, and state persistence.
- Plugin configuration, documentation, and internationalization.
Remove an unnecessary spacer and apply top-justification to improve
vertical alignment. Add a subtle background fill to the session list.
Enable live filtering of sessions in the chooser. Matches against
title, slug, ID, and directory. Search is case-insensitive.
Implement multi-question agent replies by accumulating choices locally.
A "Submit" button becomes enabled only after all questions are answered.
The chat composer clears its text after sending by updating its key,
forcing the UI to re-render an empty input field.
Updated translations for send hints and question submit button.
Introduce a `ui_mode` setting (Full/Compact) that dynamically adjusts
panel
layout. Compact mode reduces padding, font sizes, and gaps, hiding some
secondary details to minimize the panel footprint. Layout metrics
recompute on every render based on this setting.
Newest message shows at top. Scrolling down reveals older messages.
This avoids scroll offset resets on re-mount in older shell APIs.
Thinking bubble now appears above the newest message.
Provide option for panel to fill right side or appear compact near
click.
Introduces a new panel entry for the "fill right" mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant