-
Notifications
You must be signed in to change notification settings - Fork 3k
fix(extensions): preserve Claude hooks in dual-manifest extensions #8626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
destire-mio
wants to merge
32
commits into
QwenLM:main
Choose a base branch
from
destire-mio:codex/fix-extension-hooks-8539
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
c2dbf3c
fix(extensions): preserve Claude hooks in dual manifests
destire-mio 089e34f
fix(extensions): address dual-manifest review feedback
destire-mio 9c38138
fix(extensions): address follow-up review blockers
destire-mio 378f6a3
Merge branch 'main' into codex/fix-extension-hooks-8539
wenshao f8f86c9
test(extensions): cover conversion safety fallbacks
destire-mio 75e2b83
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio 40652c4
fix(extensions): preserve marketplace plugin selection
destire-mio 94dbfdb
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio 9e1f749
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio 9835bcc
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio 7fa4ab3
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio 0292884
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio cee3cf6
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio edc749d
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio cea0397
fix(review): keep repository context within file limit
destire-mio b766265
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio 5f6cbc1
test(review): pin repository context headroom
destire-mio d41df19
test(review): make context bound probe robust
destire-mio 96171c4
test(review): avoid changed-path exclusion false positive
destire-mio 76afb30
test(review): harden manifest policy probes
destire-mio 13ef11e
test(review): cover all top-level skill sources
destire-mio 975f74b
test(review): share repository file walker
destire-mio 0b67e70
test(review): normalize walked repository paths
destire-mio 3a89818
fix(extensions): streamline dual manifest conversion
destire-mio 1af22f2
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio cd2d428
chore(review): drop temporary context CI backport
destire-mio be19545
fix(extensions): address final review blockers
destire-mio 46b6248
Merge remote-tracking branch 'origin/main' into work/fix-8626
destire-mio 0b4b30c
fix(extensions): preserve numeric direct-root aliases
destire-mio 47ca61c
fix(extensions): harden remote plugin source handling
destire-mio 39faca6
fix(extensions): parse numeric HTTPS plugin aliases
destire-mio c06964c
Merge origin/main to restore current CI prerequisites
destire-mio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Dual-manifest extension hooks reviewer plan | ||
|
|
||
| ## Scope | ||
|
|
||
| Verify a trusted test extension containing `gemini-extension.json`, `.claude-plugin/plugin.json`, a Claude hooks file, `AGENTS.md`, and a Gemini TOML slash command. Do not run third-party Ponytail hook code for this review. | ||
|
|
||
| ## How to verify | ||
|
|
||
| 1. Build Qwen Code from this branch. | ||
| 2. Create a local fixture extension whose Gemini manifest declares `contextFileName: "AGENTS.md"`, whose Claude manifest points to a hooks JSON file, and whose `commands/` directory contains a valid TOML command. | ||
| 3. Make the fixture's `SessionStart` hook write a fixed marker to a temporary test directory. Install the fixture once as a standalone extension and once through a local Claude marketplace entry. | ||
| 4. Remove or move the original fixture source after installation, then start a fresh session for each installed form. | ||
| 5. Confirm the marker is written by the hook from the installed extension path, the `AGENTS.md` instruction is present in the session context, and the converted slash command is listed and can be invoked. | ||
| 6. Uninstall both fixture extensions and remove the temporary marker directory. | ||
|
|
||
| ## Expected result | ||
|
|
||
| Both install forms retain the Gemini context and TOML command while registering the Claude hook. The hook command resolves `${CLAUDE_PLUGIN_ROOT}` to the final installed extension directory and does not depend on the original source or conversion directory. |
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Suggestion] The PR's new root-entry semantics (a marketplace entry without
sourcerefers to the marketplace root) are unreachable from the Discover tab for direct-JSON (type 'http') marketplaces:resolveInstallSource's fallback produces a bare plugin-name installSource thatparseInstallSourcerejects before the converter's root handling can ever run — Failure scenario: an http marketplace entry with nosourcefield (the exact shape the new converter test 'treats a marketplace entry without source as the marketplace root' and the daemon-route display support):resolveInstallSourcereturns{installSource: plugin.name, pluginSourceKind: 'extension-root'}, andparseInstallSource('root-plugin', ...)— no colon, not a local path/archive/git URL/npm/owner-repo — throwsInstall source not found: root-plugin, so the Discover install fails. The same entry installed through a GitHub/local marketplace (kindmarketplace-entry,source:name) or the daemon choice flow works;source: './'entries hit the local-path guard and degrade to the same unresolvable bare name. No test round-trips the http no-source entry throughparseInstallSource.— deepseek-v4-flash via Qwen Code /review (v0.21.7)