GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mobile): surface dynamic tool approvals by nkcbuilds · Pull Request #9596 · pingdotgg/t3code

Conversation

@nkcbuilds

@nkcbuilds nkcbuilds commented Sep 4, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

What Changed

  • Classify canonical dynamic_tool_call approval requests as command when the server projects provider runtime events, so persisted approval activities carry an actionable requestKind.
  • Add the same dynamic_tool_call fallback to mobile approval derivation for older servers and already-persisted activities that do not carry requestKind.
  • Add focused regression coverage for both the server projection and the mobile fallback.

Why

Providers can emit approval-required tools as dynamic_tool_call (Claude Agent already does this today). Web already treated that request type as an actionable command approval, but mobile did not. At the same time, orchestration did not stamp a requestKind for these events, so the phone could receive an approval.requested activity and silently drop it instead of rendering the existing approval card.

The fix is intentionally two-sided: new server projections are self-describing, while mobile remains compatible with older servers and historical snapshots.

Verification

  • vp test run apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.approval.test.ts apps/mobile/src/lib/threadActivity.test.ts — 84 passed
  • Existing Claude adapter regression confirms Agent-tool approvals emit dynamic_tool_call
  • Server and mobile typechecks passed
  • Targeted lint, formatting, and git diff --check passed

Checklist

  • This PR is small and focused
  • I explained what changed and why

Built and verified with GPT-5.6 Sol through the T3 Code harness.


Note

Low Risk
Narrow classification change for one approval request type, with server and mobile regression tests; no auth or data-model changes.

Overview
Dynamic tool approval requests (requestType: dynamic_tool_call) are now treated like command approvals on both server ingestion and mobile pending-approval derivation, so they show up in the approval UI instead of being dropped when requestKind is missing.

On the server, requestKindFromCanonicalRequestType maps dynamic_tool_call to command, so new approval.requested activities are persisted with an actionable requestKind and the usual “Command approval requested” summary.

On mobile, the same mapping is applied in requestKindFromRequestType when activities only carry requestType (older servers or historical snapshots). Regression tests cover both paths.

Reviewed by Cursor Bugbot for commit 5a6d125. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix dynamic tool approvals surfacing as command approvals on mobile and server

  • Adds dynamic_tool_call to the command request-kind cases in both requestKindFromRequestType (mobile) and requestKindFromCanonicalRequestType (server).
  • Dynamic tool requests are now classified as command approvals so they appear in pending approvals and are ingested as actionable approval.requested activities.
  • Adds regression tests on both sides covering the new classification and persisted activity fields.

Macroscope summarized 5a6d125.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nkcbuilds
fix(mobile): surface dynamic tool approvals
4184867
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Sep 4, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Sep 4, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 4184867

Macroscope's review found this PR approvable — This is a small, focused bug fix that classifies existing dynamic tool approval events as command approvals in the server and mobile fallback paths. It reuses the existing approval UI, preserves existing callers and data, and includes targeted regression coverage without changing product defaults or static-analysis configuration.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nkcbuilds
Merge branch 'main' into fix/mobile-dynamic-tool-approvals
5a6d125
@nkcbuilds

nkcbuilds commented Sep 4, 2026

Copy link
Copy Markdown
Author

Closing this since the user-facing mobile approval bug was effectively fixed upstream as a side effect of the broader OpenCode approval work in #9653. That change now surfaces legacy/unknown approval requests on mobile and falls back to a command-style approval, so dynamic_tool_call requests no longer disappear on mobile. The explicit server-side classification in this PR is still a small consistency improvement, but it is no longer needed to fix the original bug.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nkcbuilds nkcbuilds closed this Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@nkcbuilds
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.