Skip to content

feat: add runner pairing setup, runner pick and runner project choice - #200

Merged
SummonShenron merged 1 commit into
mainfrom
sonic/working-changes-2026-11-29-runner
Nov 30, 2026
Merged

SummonShenron merged 1 commit into
mainfrom
sonic/working-changes-2026-11-29-runner

Conversation

@SummonShenron

Copy link
Copy Markdown
Owner

feat: add runner pairing setup, runner pick and runner project choice

Opened with Sonic Assistant.

Co-authored-by: Sonic Assistant <sonic-assistant@users.noreply.github.com>
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
saapp Ready Ready Preview Nov 30, 2026 1:31am UTC

@SummonShenron

Copy link
Copy Markdown
Owner Author

Sonic Assistant PR Overview

Summary

This PR introduces runner pairing, runner selection, and project choice functionality to the SAAPP interface. These changes allow users to pair new computers, select specific runners for tasks, and manage project assignments more effectively within the Connection panel.

What changed

  • Runner Pairing: Added RunnerPairingSetup.tsx to handle one-time pairing codes and setup scripts. runnerPairing.ts was created to manage pairing state globally, and SessionColumn.tsx now integrates this to allow users to pair new computers directly from the panel.
  • Runner Selection: Created runnerPick.ts to persist the user's chosen runner in localStorage. SessionColumn.tsx and sessionColumnLogic.ts were updated to filter runner status and project offers based on this selection.
  • Backend Logic: Updated backend/utils/runner_jobs.py to support filtering by runner_id in connected_runner and added chosen_runner_problem to provide feedback when a selected runner is unavailable.
  • UI Integration: Chat.tsx now passes the runner selection and limit information to the SessionColumn, ensuring the terminal and chat messages respect the user's chosen runner.

Where to look

  • local/src/components/RunnerPairingSetup.tsx: The primary UI for the pairing workflow, including script downloads and command copying.
  • local/src/components/runnerPick.ts: The logic for persisting and retrieving the user's runner preference.
  • local/src/components/sessionColumnLogic.ts: The folderCard function, which now handles the logic for choosing a runner when multiple are available.
  • backend/utils/runner_jobs.py: The connected_runner function, which now enforces the selection of a specific runner ID.

Risks and gaps

  • The runnerPick state relies on localStorage; if storage is full or unavailable, the selection reverts to default behavior, which may cause unexpected runner switching.
  • The SessionColumn now requires runnerLimit to correctly display pairing availability; missing this prop in other implementations could lead to UI inconsistencies.

Not fully covered by this overview (diff cut short: local/src/components/RunnerSettingsCard.tsx, local/src/components/SessionColumn.tsx, local/src/components/sessionColumnLogic.ts, local/src/pages/Chat.tsx; not read: local/src/components/__styles__/SessionColumn.css, backend/components/sonic_changelog.py, local/src/hooks/useRunnerPick.ts, backend/services/agent_workflow.py, local/src/hooks/useRunnerPing.ts, local/src/api.ts, local/src/components/SessionRail.tsx, local/src/components/terminalLogic.ts, ...).

Updated for commit e8e1458

@SummonShenron
SummonShenron merged commit 2e248b3 into main Nov 30, 2026
2 of 4 checks passed

This branch was successfully deployed

1 active deployment
Preview — e8e1458f Deployed Nov 30, 2026 by vercel[bot]
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.

2 participants