feat(agent-config): overlay draft, draft registry and preview composables [8/21] - #329
Merged
gusfcarvalho merged 1 commit intoOct 6, 2026
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Preview state can cross agent boundaries, and conflict discard retains a stale review comment.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Adds foundational composables for agent configuration editing and preview validation.
Changes:
- Adds persistent per-agent overlay drafts and rebase operations.
- Adds debounced server previews and editor injection context.
- Adds draft and preview unit tests.
| File | Description |
|---|---|
usePreview.ts |
Implements debounced preview requests. |
useOverlayDraft.ts |
Manages overlay editing, diffs, and rebasing. |
editorContext.ts |
Defines editor injection contracts. |
draftRegistry.ts |
Stores session-scoped drafts. |
usePreview.spec.ts |
Tests preview scheduling and cancellation. |
useOverlayDraft.spec.ts |
Tests drafts, rebasing, and registry behavior. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| }, LIVE_PREVIEW_DEBOUNCE_MS); | ||
| } | ||
|
|
||
| watch([overlay, canPreview], schedule, { immediate: true }); |
Comment on lines
+258
to
+260
| } else { | ||
| overlay.value = clone(theirs); | ||
| } |
gusfcarvalho
force-pushed
the
agent-config/08-overlay-draft
branch
from
October 5, 2026 16:32
3da6526 to
8d534f7
Compare
This was referenced Oct 6, 2026
Merged
ccf-lisa
Bot
force-pushed
the
agent-config/08-overlay-draft
branch
2 times, most recently
from
October 6, 2026 11:38
740cc3e to
d08182b
Compare
This was referenced Oct 6, 2026
This was referenced Oct 6, 2026
Merged
This was referenced Oct 6, 2026
ccf-lisa
Bot
force-pushed
the
agent-config/08-overlay-draft
branch
2 times, most recently
from
October 6, 2026 14:20
0d20bcc to
a640013
Compare
…bles Layer 8 of 21 in the stacked split of #318. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
agent-config/08-overlay-draft
branch
from
October 6, 2026 14:38
a640013 to
5955335
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Part 8 of 21 of the stacked split of #318 (agent remote configuration). Every layer adds the final version of its files from #318, and only imports from layers below it, so each layer passes
make reviewableon its own. Nothing is reachable in the app until layer 20 wires the Configuration tab in.What
The client-side overlay draft (
useOverlayDraft), a per-agent draft registry, the editor context injection key and the server preview composable (usePreview).Tests
Specs for the draft and the preview.
🤖 Generated with Claude Code