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 — feat: agents can navigate the app and run palette thread actions by batchema · Pull Request #8 · batchema/t3code

Conversation

@batchema

@batchema batchema commented Nov 13, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Owner

Part of #5 (step 3: command palette and navigation).

Agents could run shortcut commands in the user's window (#7), but couldn't move the window to a page. Some palette actions also had no command id, so neither agents nor keybindings could reach them.

Navigation. t3_app_navigate shows one of these in the window the user used last:

  • a thread from the agent's own environment (the server checks that it exists first)
  • a settings section
  • usage
  • pull requests

The window answers only once it's really there. It waits for the navigation to finish, and for an older thread it also waits until the thread has loaded and its chat can take commands. So a command sent right after reaches the new page. A redirect to another page counts as not arriving. A blocked navigation never finishes, so each request gives up after 5 seconds; the server stops waiting at the same point.

The settings sections now live in contracts, and the web app's SettingsPath type is built from them, so the two lists can't drift apart.

Palette actions get stable ids. Four thread actions were palette-only:

  • restart agent session
  • show linked pull requests
  • link a pull request
  • share with guest

They're now keybinding commands (thread.restartSession, thread.showPullRequests, thread.linkPullRequest, thread.shareWithGuest). That means you can bind keys to them, the palette shows their shortcut, and agents run them with t3_app_command. The palette and the chat view share one restart hook.

Left out on purpose:

  • Starting threads (new thread, new thread in…, triage): agents use t3_thread_launch.
  • In-palette pickers (add project, new project, WSL folder): they need the user to pick; agents have t3_project_create and t3_project_clone.
  • Copy prompt link and "Use T3 Code in another app": they only matter to the person at the keyboard.
  • Pin project: t3_project_update already covers it.
  • Deep-linking one project's settings: it needs the sidebar's grouping key. Agents can open Settings › Projects instead.

Checked

  • vp run check:changed passes.
  • A browser test covers the navigation helper: it doesn't settle while the destination is still loading, a redirect elsewhere counts as not arriving, and a thread id that needs URL encoding still matches. Each case fails on the earlier version of the helper.
  • Four Sol (GPT-6.1, xhigh) review rounds. Each of the first three found a timing or accuracy gap in when the window answers, all fixed above; round 4 approved.
  • End to end, on a dev server with a copy of real data, a headless browser and real Codex Luna turns:
    • t3_app_navigate to the keybindings section returned {"ran":true}, and the window moved to /settings/keybindings.
    • An agent opened its own thread, then ran thread.linkPullRequest. Both returned {"ran":true}, and the dialog opened (screenshot below).
    • The palette's "Restart agent session" still restarts and shows its toast.
    • After the fixes, an agent opened a different thread and immediately linked a PR on it. Both calls returned ran, and the dialog opened on the new thread.
  • The new eval case open-settings-section-uses-app-navigate has only had a dry run.

The agent tool list grows by about 1 KB (budget updated), mostly the settings section list, which is what lets agents discover the sections.

An agent opened its own thread, then the Link pull request dialog, in the user's window:

Link pull request dialog opened by an agent

Built by Claude Opus 5.5 in Claude Code.

Sorry, something went wrong.

Uh oh!

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

All reactions
batchema added 4 commits November 13, 2026 17:12
@batchema
feat: agents can navigate the user's window and run palette thread ac…
d30b38a
…tions

t3_app_navigate shows a thread from the agent's environment, a settings
section, usage, or pull requests in the window the user used last.

Restart agent session, show linked pull requests, link a pull request and
share with guest were palette-only. They are now keybinding commands, so
users can bind them and agents run them with t3_app_command.
@batchema
fix: app navigation answers once the destination is on screen
a22bab2
A command sent right after t3_app_navigate could reach the previous page,
since the window answered before navigating. It now awaits the navigation,
reports a redirect back as not handled, and bounds each request so one that
never settles (a blocked navigation) can't hold the queue.
@batchema
fix: thread navigation answers once the thread's chat can mount
61c6b59
An older thread outside the shell loads its row after the route settles, and
its chat mounts only then. Navigation now waits for that row before answering.
@batchema
fix: app navigation reports a redirect elsewhere as not handled
59ab2cd
It compared the final URL with the starting one, so a redirect to another
page (Secrets with its feature off lands on General) counted as arriving.
It now compares the final path with the requested one.
@batchema
batchema merged commit 685633e into main Nov 13, 2026
@batchema
batchema deleted the feat/agent-palette-navigation branch November 13, 2026 17:00
@batchema batchema mentioned this pull request Nov 13, 2026
Agents can drive all of T3 Code #5
Closed
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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

@batchema
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.