fix: build action from source so /glimpse uses PR branch code#22
Merged
DeDuckProject merged 2 commits intomainfrom Mar 13, 2026
Merged
fix: build action from source so /glimpse uses PR branch code#22DeDuckProject merged 2 commits intomainfrom
DeDuckProject merged 2 commits intomainfrom
Conversation
Previously, issue_comment (/glimpse) events would overlay packages/action/ from main after checking out the PR head. This meant every action/core code change required merging to main before it could be tested — causing wasted debugging cycles (the cursor overlay actually worked much earlier than we thought). Replace the overlay with a `pnpm build` step that always rebuilds the action dist from the checked-out source. This works for both event types: - pull_request: rebuilds from PR source (fixes stale dist edge cases) - issue_comment: rebuilds from PR head, so /glimpse tests the branch's code Also remove the GG_DEBUG_TRACE debug infrastructure (trace start/stop, tracePath interfaces, upload-artifact step) added during the cursor debugging session — no longer needed now that the root cause is identified. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Problem
When
/glimpseis triggered viaissue_comment, GitHub always runs the workflow from the default branch (main). Our workaround was to overlaypackages/action/from main after checking out the PR head — which meant every action/core code change required merging to main before it could be tested.This caused significant wasted debugging time: the cursor overlay actually worked much earlier, but we couldn't see it because our code changes were being silently ignored.
Fix
Replace the overlay step with
pnpm build, which rebuilds the action dist from whatever is currently checked out:issue_comment(/glimpse): checks out PR head → builds from it → action uses PR branch's code ✅pull_request: checks out merge commit → builds from it → also fixes stale dist edge cases ✅External users are unaffected — they use
uses: DeDuckProject/git-glimpse@v1(published action), not this workflow.Also removed
GG_DEBUG_TRACEtrace infrastructure (tracePathinterfaces,context.tracing.start/stop, upload-artifact step) — was debug scaffolding for the cursor investigation, no longer needed.debug-cursor.mjs— local debug script, was untracked.🤖 Generated with Claude Code