Skip to content

fix: ship the uninstall script in the extension package - #96

Merged
patoles merged 1 commit into
mainfrom
fix/ship-uninstall-script
Oct 9, 2026
Merged

patoles merged 1 commit into
mainfrom
fix/ship-uninstall-script

Conversation

@patoles

@patoles patoles commented Oct 9, 2026

Copy link
Copy Markdown
Owner

What does this PR do?

Found while packaging v0.9.2: extension/.vscodeignore excludes scripts/**, so scripts/uninstall.js has never been in the .vsix (it's missing from the 0.9.1 package too). The vscode:uninstall hook points at a file that isn't there, so uninstalling the extension never removed Agent Flow's hooks from settings.json. It also means the uninstall fix in #95 wouldn't ship.

  • Keep scripts/uninstall.js in the package
  • Stop shipping test/ (a Codex fixture) and tsconfig.test.json
  • Changelog entry under 0.9.2, which hasn't been released yet

How to test

cd extension && npx @vscode/vsce package --no-dependencies
unzip -l agent-flow-0.9.2.vsix | grep scripts   # extension/scripts/uninstall.js

I also unpacked the .vsix and ran the packaged scripts/uninstall.js against a sandboxed HOME. It removed Agent Flow's hook, kept another tool's loopback hook, and deleted ~/.claude/agent-flow.

Checklist

.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.
@patoles
patoles merged commit 1d821af into main Oct 9, 2026
2 checks passed
@patoles
patoles deleted the fix/ship-uninstall-script branch October 9, 2026 09:54
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant