Skip to content

feat(paseo-daemon): register token repositories as projects; preselect agent models - #181

Merged
tee8z merged 1 commit into
mainfrom
tee8z/paseo-workspaces
Nov 13, 2026
Merged

tee8z merged 1 commit into
mainfrom
tee8z/paseo-workspaces

Conversation

@tee8z

@tee8z tee8z commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Two fixes from the first live Paseo daemon test, where starting work felt awkward:

Problem Behavior after this PR
A paired app showed no projects or file trees until the developer cloned and added each repository by hand. At startup, paseo-workspaces clones each GITHUB_READ_TOKEN_REPOSITORIES entry once and registers it with paseo project create. The repositories appear as projects with file trees.
Every Buzz agent provider showed "Select a model", although the bridge offers no model choice. Each Buzz provider declares one model with isDefault: true, so the picker is preselected.

How it works

  • workspaces.mjs (installed as /usr/local/bin/paseo-workspaces) runs in the background from the entrypoint, after the keypair is removed from the environment, and never blocks startup.
  • It polls paseo project ls --json at most 60 times until the daemon answers.
  • For each repository: if ~/code/<owner>/<repo> is absent, it runs paseo-code clone, which uses the existing read-only helper, credential scoping and deadline. If the directory isn't registered yet, it runs paseo project create <dir>.
  • It's idempotent: no second clone, no second registration. A repository the token can't read is logged to stderr and skipped. No token reaches argv or logs.
  • Each process is bounded to 5 minutes, and captured output to 1 MiB.
  • The model declaration uses Paseo 0.15's ProviderOverride.models. The generic ACP provider calls unstable_setSessionModel only when the agent advertises models; the bridge advertises none, so the declaration only preselects the picker.

Testing

  • node voltage/images/paseo-daemon/test-workspaces.mjs covers:

    • a daemon that answers after polling;
    • an existing, registered checkout that is skipped;
    • a new repository that is cloned and registered;
    • an unreadable repository that is reported and skipped;
    • an empty list that runs nothing;
    • a daemon that never answers and stops after the bounded attempts.

    Falsified: removing the registered-project skip fails it.

  • Ran the full image contract locally: docker build plus bash voltage/images/paseo-daemon/test-image.sh paseo-daemon:local, ending in PASS: Paseo daemon image contract. It now asserts that the Brokkr provider ships one preselected model labelled Brokkr.

  • Dockerfile.dockerignore allows the new helper.

  • Not yet exercised against a live daemon with real repositories. That happens after this image is promoted to paseo_daemon_image, and needs the developer's Paseo GitHub read token.

🤖 Generated with Claude Code

…t agent models

A paired Paseo app showed no projects or file trees until the developer
cloned and added each repository by hand, and every Buzz agent provider
asked for a model although the bridge offers none. At startup,
paseo-workspaces now clones each GITHUB_READ_TOKEN_REPOSITORIES entry
once with paseo-code and registers it with paseo project create, in the
background and bounded; and each Buzz provider declares one preselected
model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tee8z <tee8z@protonmail.com>
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 7 billable files and costs up to $1.75.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 17 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 3 included reviews currently available. Your 48 included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3b54939 and 4fd44a0.

Files selected for processing: 7

  • voltage/images/paseo-daemon/Dockerfile
  • voltage/images/paseo-daemon/Dockerfile.dockerignore
  • voltage/images/paseo-daemon/README.md
  • voltage/images/paseo-daemon/entrypoint.sh
  • voltage/images/paseo-daemon/test-image.sh
  • voltage/images/paseo-daemon/test-workspaces.mjs
  • voltage/images/paseo-daemon/workspaces.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@tee8z
tee8z merged commit ddc3e1c into main Nov 13, 2026
47 checks passed
@tee8z
tee8z deleted the tee8z/paseo-workspaces branch November 13, 2026 18:37
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