Skip to content

feat: Suggestions from where Panes work (#373) - #403

Merged
bRRRITSCOLD merged 3 commits into
mainfrom
feat/373-suggestions
Nov 24, 2026
Merged

bRRRITSCOLD merged 3 commits into
mainfrom
feat/373-suggestions

Conversation

@bRRRITSCOLD

Copy link
Copy Markdown
Owner

Closes #373

When a Workspace's Panes work in a Repository the Workspace doesn't link, agentdeck now offers to link it, quietly, and remembers when you say Not now.

Daemon

  • Suggestions are worked out per unarchived Workspace from every Pane's current folder (an exited Pane's last known folder): the folder's git repo gives its upstream remote when that is on GitHub, else its origin; other remotes are ignored. The Repositories the Workspace links are left out; one other Workspaces link is still suggested. Nothing scans the disk beyond the Panes' folders.
  • How remotes are read: straight from the repo's config file, no git process. The folder or the nearest one above it with .git: a directory, or a gitdir: file (worktree, submodule), whose commondir leads a worktree to the main repo's config. include/includeIf and insteadOf aren't followed (spec §3 says so).
  • Confirmed with GitHub once per run: each owner/name goes through REST GET /repos/{owner}/{repo} once, and the answer (the Repository with its id and name now, or "GitHub can't see it") is kept in memory, so a name GitHub can't see is never suggested. A failed call keeps nothing. Signed out, only a Repository agentdeck keeps by that name (and isn't Unreachable) is suggested.
  • GET /v1/workspaces/{id}/suggestions lists them as Repository (id, name, url, private, archived), not filtered by dismissals; [] for an archived Workspace, 404 not_found for a missing one.
  • changed suggestions (id the Workspace's) is sent when a Workspace's Suggestions differ from the last ones worked out: a watcher on the event bus works them out again after a Pane opens, moves, exits or is deleted, a Link or the Workspace changes, a Repository changes or the GitHub sign-in changes.
  • API_VERSION 26; openapi.json and the client regenerated; agentdeck_client::repositories::suggestions reads none from an older daemon.

GUI

  • A Workspace's Pull requests shows one strip under its header: "Panes here work in owner/name. Link it to this workspace? Link · Not now", several Suggestions stacked in it. Link links at once by GitHub's id with the held Repository, toasts "Linked owner/name to " with Undo, and the row goes; the group appears once the daemon's changed is read. Not now dismisses it for that Workspace for good.
  • Dismissals live in gui.json ({"dismissed": {"<workspace id>": [<repository id>]}}). A GUI unlink (Edit workspace's Save, a group's Unlink from this workspace) records the same dismissal; agentdeck repo unlink doesn't, since dismissals are GUI state.
  • A Workspace with no Repositories lists its Suggestions in the same strip under its Link repository button.
  • The "Link a repository…" picker lists Suggested first, ignoring dismissals, then From your pull requests (without the Suggested ones), both filtered as typed.

Design

Penpot boards, beside the existing ones: "Workspace · Pull requests · suggestion", "· suggestions" and "Workspace · no repositories · suggestions" (Screens · Main), and "Edit workspace · picker · suggested" (Screens · Dialogs); a new page-local agentdeck/SuggestionRow, and Suggested rows on agentdeck/LinkPickerList. Penpot exports and app captures, side by side: ~/Pictures/agentdeck/2026-11-23-suggestions/. They match.

Notes

  • changed suggestions is sent only when a Workspace's Suggestions differ from the last ones worked out, so a Pane exiting (which keeps its last folder) recomputes them but usually sends nothing.
  • Undo of a Link made from the strip unlinks without recording a dismissal: it puts things back as they were.
  • docs/spec.md §3, §4, §5, §8, §11 and §12 are rewritten for Suggestions.

🤖 Generated with Claude Code

bRRRITSCOLD and others added 3 commits November 23, 2026 16:53
GET /v1/workspaces/{id}/suggestions lists the Repositories a Workspace's
Panes work in that it doesn't link: each folder's upstream remote when on
GitHub, else origin, read from the repo's config file. Each owner/name is
confirmed with GitHub once per run; signed out, only kept Repositories.
A watcher sends changed suggestions when they differ. API_VERSION 26.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…373)

A Workspace's Pull requests shows its Suggestions in one strip under the
header (under Link repository when nothing is linked): Link links at once
by id with a toast and Undo, Not now is kept per Workspace and Repository
in gui.json, as is every GUI unlink. The picker lists all Suggestions
first, ignoring dismissals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bRRRITSCOLD
bRRRITSCOLD merged commit bdd9782 into main Nov 24, 2026
6 checks passed
@bRRRITSCOLD
bRRRITSCOLD deleted the feat/373-suggestions branch November 24, 2026 00:07
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.

Suggestions

1 participant