Skip to content

fix: Rebuild Locally syncs all content dirs to installed extension - #388

Merged
jeonghun-jj-lee merged 1 commit into
mainfrom
fix/rebuild-syncs-content-dirs
Aug 15, 2026
Merged

fix: Rebuild Locally syncs all content dirs to installed extension#388
jeonghun-jj-lee merged 1 commit into
mainfrom
fix/rebuild-syncs-content-dirs

Conversation

@jeonghun-jj-lee

@jeonghun-jj-lee jeonghun-jj-lee commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Problem

"Rebuild Locally" only copied dist/*.js files into the installed extension path. All other content (skills/, scores/, templates/, exemplars/, opencode-plugin/, julia/, tools/, AGENTS.md, DISTILLER.md, CONTRACT.md) resolved via __dirname or ctx.extensionPath against the installed extension — so local changes were invisible until a fresh vsix install.

Fix

The rebuild now syncs all content directories and top-level markdown files from the dev repo into the installed extension path, alongside the existing dist copy. This makes the dev loop for skills, scores, templates, the plugin, julia pins, and the system prompt immediate.

Test

  1. Add a dummy skill to packages/extension/skills/test-dummy/SKILL.md
  2. Hit Rebuild Locally
  3. Confirm /test-dummy appears after reload
  4. Delete the dummy

Summary by CodeRabbit

  • New Features

    • Developer tools now synchronize available content directories and top-level Markdown files from the local repository into the installed extension.
    • Synchronization occurs automatically after built assets are copied.
  • Bug Fixes

    • Added warnings when individual content items cannot be synchronized, improving visibility into incomplete updates.

@jeonghun-jj-lee jeonghun-jj-lee added the afk Implement + merge unattended — tests decide green label Aug 15, 2026
@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b961e1b6-b80b-4359-87da-834fabec2c40

📥 Commits

Reviewing files that changed from the base of the PR and between 6f2e9d7 and 37a2a8b.

📒 Files selected for processing (1)
  • packages/extension/src/chat_bridge.ts

📝 Walkthrough

Walkthrough

The developer-tools rebuild now copies selected runtime directories and top-level Markdown files from the local repository into the installed extension. Each synchronization operation checks source existence and logs failures independently.

Changes

Extension content synchronization

Layer / File(s) Summary
Rebuild content synchronization
packages/extension/src/chat_bridge.ts
The rebuild flow copies the skills, scores, templates, exemplars, opencode-plugin, julia, and tools directories, plus selected Markdown files. Each copy handles errors independently and logs warnings.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • harmoniqs/amicode#308: Both changes update the rebuild flow in packages/extension/src/chat_bridge.ts to copy repository content into the installed extension.
  • harmoniqs/amicode#379: This change extends the developer-tools rebuild workflow introduced by that pull request.

Suggested reviewers: aarontrowbridge

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/rebuild-syncs-content-dirs

Comment @coderabbitai help to get the list of available commands.

The dev-tools 'Rebuild Locally' copies dist/*.js files into the installed
extension path but did not copy skills/. Since DEFAULT_LIBRARY_ROOTS resolves
via __dirname (which points at the installed extension's dist/), new or
modified skills in the dev repo were invisible until a fresh vsix install.

Now the rebuild syncs the full skills/ directory alongside dist/, so local
skill changes (like migrate-to-armonia) are immediately available after a
rebuild + reload.
@jeonghun-jj-lee
jeonghun-jj-lee force-pushed the fix/rebuild-syncs-content-dirs branch from c074659 to 37a2a8b Compare August 15, 2026 11:11
@jeonghun-jj-lee
jeonghun-jj-lee merged commit 82c5f5a into main Aug 15, 2026
6 of 7 checks passed
@jeonghun-jj-lee
jeonghun-jj-lee deleted the fix/rebuild-syncs-content-dirs branch August 15, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

afk Implement + merge unattended — tests decide green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant