Skip to content

Refactor OpenCode config loading with shared caches#99

Merged
dbpolito merged 1 commit intomainfrom
refactor/cache-opencode-loaders
Apr 17, 2026
Merged

Refactor OpenCode config loading with shared caches#99
dbpolito merged 1 commit intomainfrom
refactor/cache-opencode-loaders

Conversation

@dbpolito
Copy link
Copy Markdown
Contributor

@dbpolito dbpolito commented Apr 17, 2026

Ticket

SKIPPED

Description

Centralize OpenCode config and loader resolution so plugin setup reuses shared state and avoids repeated work while keeping tool-reference rewriting consistent.

Checklist

Shared caching

  • Cache merged Kompass config and configured OpenCode tool names per project root
  • Cache resolved agents and commands behind shared read-through loaders

OpenCode setup

  • Reuse cached loaders in agent and command config application
  • Load command-expansion rewrite data and merged plugin config through the shared cache layer

Validation

  • Verify that OpenCode agent and command config still load correctly
  • Confirm that delegated command expansion still rewrites Kompass tool references correctly

- centralize merged config, tool name, agent, and command loading in a shared cache module
- reuse cached loader helpers across OpenCode config and tool setup paths to avoid repeated resolution work
- defer delegated command tool-name rewriting to execution time and bump the package version to 0.13.0
@dbpolito dbpolito self-assigned this Apr 17, 2026
@dbpolito dbpolito merged commit 11d4d3e into main Apr 17, 2026
1 check passed
@dbpolito dbpolito deleted the refactor/cache-opencode-loaders branch April 17, 2026 16:54
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