Fix canvas repo detection and shrink oversized preview images#2227
Merged
aaronpowell merged 1 commit intoJul 7, 2026
Merged
Conversation
Canvas extensions (accessibility-kanban, where-was-i) resolved git state
against the extension's install directory or the session-state folder
instead of the repo the session was opened in. This broke repo/branch
detection for user-scoped installs and worktrees ("unknown/unknown",
"detached HEAD"). Both now read the active session's working directory
from the canvas request context on open and on each action, so they
follow whichever project/worktree opened them.
where-was-i also re-gathers context on open when the saved branch is
blank, so it never opens stuck on stale data.
Also compress oversized extension preview images (pngquant, with a mild
resize for the photographic arcade-canvas art) so every preview.png is
comfortably under the installer's inline-byte cap that was blocking
release-notes-showcase from installing.
Update release-notes-showcase author to Kayla Cinnamon.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates canvas extensions to resolve git repository/branch context against the active canvas session’s working directory (rather than the extension install directory or session-state folder), improving repo/branch detection across user-scoped installs and worktrees. It also updates metadata for the release-notes-showcase extension (and, per PR description, includes preview image size reductions).
Changes:
- Update
where-was-iandaccessibility-kanbanto capturectx.session.workingDirectoryand use it as the working directory for git/repo resolution and refresh flows. - Ensure
where-was-ire-gathers context on open when persisted context is missing a branch. - Update
release-notes-showcaseplugin author metadata.
Show a summary per file
| File | Description |
|---|---|
| extensions/where-was-i/extension.mjs | Captures the canvas session working directory and uses it for git context gathering; re-gathers on open when branch is missing. |
| extensions/accessibility-kanban/extension.mjs | Switches repo resolution to prefer the session working directory and captures it on open/actions. |
| extensions/release-notes-showcase/.github/plugin/plugin.json | Updates the extension author metadata. |
Review details
- Files reviewed: 3/9 changed files
- Comments generated: 2
- Review effort level: Low
| // ─── Join session (tools + canvas) ─── | ||
|
|
||
| const session = await joinSession({ | ||
| await joinSession({ |
|
|
||
| if (url.pathname === "/refresh" && req.method === "POST") { | ||
| const data = await gatherContext(cwd); | ||
| const data = await gatherContext(repoCwd()); |
aaronpowell
approved these changes
Jul 7, 2026
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.
Canvas extensions (accessibility-kanban, where-was-i) resolved git state against the extension's install directory or the session-state folder instead of the repo the session was opened in. This broke repo/branch detection for user-scoped installs and worktrees ("unknown/unknown", "detached HEAD"). Both now read the active session's working directory from the canvas request context on open and on each action, so they follow whichever project/worktree opened them.
where-was-i also re-gathers context on open when the saved branch is blank, so it never opens stuck on stale data.
Also compress oversized extension preview images (pngquant, with a mild resize for the photographic arcade-canvas art) so every preview.png is comfortably under the installer's inline-byte cap that was blocking release-notes-showcase from installing.
Update release-notes-showcase author to Kayla Cinnamon.
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.mainbranch for this pull request.Description
Type of Contribution
Additional Notes
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.