Repository navigation
feat(slack): Show tool progress in the assistant loading state - #2668
Draft
sentry-junior[bot] wants to merge 8 commits into
Draft
sentry-junior[bot] wants to merge 8 commits into
sentry-junior[bot] wants to merge 8 commits into
Conversation
Tools can now describe their own progress with describeProgress. The tool pipeline sends the label after action review allows the call, and the status scheduler keeps a phase from reportProgress or updatePlan ahead of tool labels for 8 seconds. Co-Authored-By: Matt Duncan <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
15 screenshot changes — 15 changed · 0 added · 0 removed Review screenshots in Frameshift Show 9 more changed screenshots |
Name only well-known programs in the bash label, and give up on quoted env values, so a script name or a quoted value never shows. Drop a tool's label when the tool finishes, so it does not stay up while the reply is drafted. Cover Code Mode calls in the codemode scenario. Co-Authored-By: Matt Duncan <[email protected]>
This was referenced Nov 9, 2026
sentry-junior Bot
added a commit
that referenced
this pull request
Nov 12, 2026
Reviewers treat a note about test coverage like a test plan, so the check question and fix now name it. The #2668 final is a reject case. Co-Authored-By: David Cramer <[email protected]>
dcramer
added a commit
that referenced
this pull request
Nov 12, 2026
Agent-written PR descriptions often carry what reviewers do not need: check results, test plans and coverage notes, the work log, and talk about the request. Sometimes they also leave out why the change is needed. Reviewers pushed back on this on #2420, #2461, #2668, and others. With `githubPlugin({ experimental: { pullRequestDescriptionChecks: true } })`, `createPullRequest` and `updatePullRequest` check the `body` before the GitHub write. The decision model (`ctx.decider`) answers 4 yes/no questions in parallel. Any yes rejects the call with a `PluginToolInputError` that lists the fixes, so the agent sends a better body. The experiment is off by default, and the tool input does not change. This adds `decider` to the plugin tool context in `@sentry/junior-plugin-api`. Before, only `afterToolExecute` had it. The classifiers suite has a new eval file. It uses first drafts and reviewed finals of junior PRs, plus a few short made-up bodies. <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0AHB7N2JCR%3A1794434761.838699 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0AHB7N2JCR%3A1794434761.838699) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0AHB7N2JCR%3A1794434761.838699/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]> Co-authored-by: David Cramer <[email protected]>
…atus # Conflicts: # packages/junior/src/chat/slack/tools/canvas/read.ts # packages/junior/src/chat/tools/runtime/spawn-agent.ts # packages/junior/src/chat/tools/sandbox/find-files.ts # packages/junior/src/chat/tools/sandbox/grep.ts # packages/junior/src/chat/tools/sandbox/list-dir.ts # packages/junior/src/chat/tools/sandbox/read-file.ts # packages/junior/src/chat/tools/sandbox/write-file.ts # packages/junior/src/chat/tools/skill/call-mcp-tool.ts # packages/junior/src/chat/tools/skill/search-mcp-tools.ts # packages/junior/src/chat/tools/web/image-generate.ts # packages/junior/tests/integration/codemode/tool.test.ts
…atus # Conflicts: # packages/junior/tests/component/tool-support/pi-tool-adapter.test.ts # packages/junior/tests/integration/codemode/tool.test.ts
…atus # Conflicts: # packages/junior/src/chat/slack/tools/channel-list-messages.ts
…atus # Conflicts: # packages/junior/src/chat/slack/tools/canvas/read.ts # packages/junior/src/chat/slack/tools/channel-list-messages.ts # packages/junior/src/chat/slack/tools/public-search.ts # packages/junior/src/chat/slack/tools/thread-read.ts # packages/junior/src/chat/tools/runtime/spawn-agent.ts # packages/junior/src/chat/tools/sandbox/bash.ts # packages/junior/src/chat/tools/sandbox/edit-file.ts # packages/junior/src/chat/tools/sandbox/read-file.ts # packages/junior/src/chat/tools/sandbox/write-file.ts # packages/junior/src/chat/tools/web/fetch-tool.ts # packages/junior/src/chat/tools/web/search.ts
This branch was successfully deployed
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.
Most turns never call
reportProgress, so Slack keeps rotating the joke loading messages ("Negotiating with the mutex") even while Junior reads files, runs commands, or calls Linear. This PR lets each tool describe its own progress, so the loading state shows the actual step.Behavior
describeProgress(input)that returns a short label, orundefinedto keep the current status.updatePlanandreportProgressstatuses now go through the same point, so direct,executeTool, andcodemodecalls all behave the same.reportProgress,updatePlan, or runtime statuses such as "Compacting context") holds for 8s before tool labels can replace it. Tool labels inside that window are dropped, not queued.Labels. They show where the reply goes, so they never echo raw user text, commands, or arguments:
bash: "Running pnpm", the first program only, and only from a short list of well-known programs. It skipscdand env assignments and never shows arguments. A script name, a quoted env value, or any other program shows "Running commands".readFile/editFile/writeFile: the file's base name only.webFetch: the hostname only.loadSkill: names only skills from the available list.callMcpTool: names only the provider of an active tool, for example "Calling Linear".searchMcpTools: names only a configured provider, for example "Connecting to Notion".viewImage,webSearch,imageGenerate,spawnAgent, and the Slack read tools.Not in this PR
describeProgressis not onPluginToolDefinitionyet, so plugin tools do not show labels. Adding it is a publicjunior-plugin-apichange. I left it for a follow-up so it can be released and then used per plugin (github, google, vercel, memory).setStatus.test-architecture:checkdoes not allow tests inpackages/junior/teststhat run the agent. Coverage is the pipeline component test, the codemode scenario, and the scheduler unit tests.Local runs: the integration failures I saw (5s timeouts, S3 and BullMQ connection errors) also fail on
mainin this sandbox.via @mrduncan.
--
View Session [Sentry]