Repository navigation
fix: ship the uninstall script in the extension package - #96
Merged
Merged
Conversation
.vscodeignore excluded scripts/**, so scripts/uninstall.js was never in the .vsix and the vscode:uninstall hook had nothing to run. Uninstalling the extension left Agent Flow's hooks in settings.json. Keep scripts/uninstall.js in the package, and stop shipping test/ and tsconfig.test.json.
VladRd20
added a commit
to VladRd20/agent-flow
that referenced
this pull request
Nov 5, 2026
…es#96 patoles#97 patoles#98 patoles#99 patoles#56 patoles#103 patoles#104 patoles#106) Conflict resolutions: - hooks-config.ts / uninstall.js / .vscodeignore: take upstream's hook-entries refactor (supersedes our earlier partial port of the v0.9.2 hook fixes). - app/src/server.ts: keep our read-only (GET/HEAD) + --host handling and add upstream's DNS-rebinding guard, adapted: loopback binds accept loopback Host only; LAN/WAN binds (--host 0.0.0.0) also accept IP-literal Hosts and names in AGENT_FLOW_ALLOWED_HOSTS (new isAllowedRemoteHost in request-guard.ts). Upstream's loopback-only check would have locked out remote/phone access. - protocol.ts / event-source.ts: both sides added fileTail; keep our docs, add upstream's SubagentState.completed. - timeline-panel.tsx: keep mobile maxHeight + upstream model hover handler. - transcript-parser.test.ts add/add: ours kept, upstream's moved to transcript-parser-upstream.test.ts; upstream fixtures get pendingCatchUpSpawns. - package.json test script: keep ours (cross-env, web/**) which is a superset.
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.
What does this PR do?
Found while packaging v0.9.2:
extension/.vscodeignoreexcludesscripts/**, soscripts/uninstall.jshas never been in the.vsix(it's missing from the 0.9.1 package too). Thevscode:uninstallhook points at a file that isn't there, so uninstalling the extension never removed Agent Flow's hooks fromsettings.json. It also means the uninstall fix in #95 wouldn't ship.scripts/uninstall.jsin the packagetest/(a Codex fixture) andtsconfig.test.jsonHow to test
I also unpacked the
.vsixand ran the packagedscripts/uninstall.jsagainst a sandboxed HOME. It removed Agent Flow's hook, kept another tool's loopback hook, and deleted~/.claude/agent-flow.Checklist