Repository navigation
Add dune execution list and cancel for query Activity - #82
Merged
Merged
Conversation
execution list calls listTeamExecutions and execution cancel calls cancelTeamExecution, from core#8334. cancel asks before it stops a run, because the run also stops for anyone who shares it; --yes skips the question. Amp-Thread-ID: https://ampcode.com/threads/T-01a21358-0fae-720b-9830-e8b42af43a85 Co-authored-by: Amp <amp@ampcode.com>
0xRobin
approved these changes
Nov 26, 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.
Adds
dune execution listanddune execution cancel. They match the Dune MCP's query Activity tools,listTeamExecutionsandcancelTeamExecution, from core#8334. That PR is merged and is in prod since core-node releasenode-1.0.1023.Impact map
execution list [--status active|finished]listTeamExecutionsexecution cancel <execution-id> [--yes]cancelTeamExecutionexecutionhelp, READMEReview notes
query alert. The tools are in the MCP'sactivitytoolset. The CLI's MCP client names no toolsets, so it gets them with no change.execution listdefaults to--status active. The text table shows state, query (name, ID or ad-hoc SQL), who started it (handle or API key name), source, engine, slot use and whether you can cancel, plus the total count and the plan's slot limit.--status finishedshows outcome, duration and end time.-o jsonprints the tool result as it is.execution cancelasks on stderr before it calls the tool, because a shared run also stops for every user on it. Any answer other than y or yes cancels nothing. In a shell where nobody can answer, the command refuses unless--yesis given. It fails when the tool reportscancelled: false.Testing
cmd/execution/activity_test.gouse the fake MCP server: both statuses, an unknown status, JSON pass-through, and cancel with yes, no, no terminal,--yes, andcancelled: false.go test ./...andgo vet ./...pass.make lintcould not run in my orb: golangci-lint v1.64.8 cannot read the orb's newer Go toolchain, and it fails the same way onmain.No visual surface: CLI only.