Repository navigation
feat(t3code): PP-410 start a ticket in a member's T3 Code - #694
Conversation
Members connect their own T3 Code from profile connections by pasting its MCP URL. ProjectProject signs in to it as an OAuth client (PKCE, dynamic client registration), checks the token with t3_environment_read and keeps it sealed per user. Groundwork for starting tickets in T3 Code (PP-407). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ount Connected accounts uses the organization integrations' card grid: a card per account with a status badge, leading to the account's own page in the integration detail layout. OAuth sign-ins and links return to that page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Members choose what their T3 Code receives when they start a ticket: - A prompt template edited with field chips (typed with /) and $skill badges, a preview with an example ticket, and save with Cmd+Enter. The default reads the ticket by its ID through the MCP tools or the pp CLI. - The model and effort, picked from a command menu with a tab per provider and an effort pane beside the list that works like a submenu. - The permission mode and working copy each ticket's thread starts with. - Per project, the T3 Code project its tickets open in, suggested from a matching GitHub repository. Stored as user_settings columns and the user_t3code_project_link table. Primitive changes in @pp/ui: - CommandMenuTabs: the active tab takes the menu highlight, visible in popups too; CommandMenuItem gets `checked` for a picker's current choice. - Select items take a description line. - The slash menu can size to its content. - Tooltips with a max width wrap their rolling text, and TextSwap crossfades values past 48 characters instead of rolling every glyph, which stuttered on long hints. Co-Authored-By: Claude Opus 5.5 <[email protected]>
POST .../tickets/:id/t3code/start fills the member's prompt with the
ticket, calls t3_thread_launch in the T3 Code project they picked (or the
one whose repository matches) with their model and modes, stores the
start in t3code_ticket_start and records a t3code_started entry in the
ticket's activity with a link to the thread. The ticket itself is not
changed.
- Retries are safe: the member's clientRequestId keys the stored start
and T3 Code's own launch, so a retry returns the same thread. A start
whose activity can't be recorded is removed, so a retry records it.
- A start that can't happen says why before anything reaches T3 Code:
not connected, sign-in expired or revoked, read-only approval, no T3
Code project. An unreachable machine and T3 Code's own refusals (its
message travels as T3CodeError.detail) get their own messages.
- New branches start from origin/HEAD: the T3 Code project can be another
repository than the project's, so its base branch name may not exist.
- A thread runs at most at the mode the member approved ProjectProject
for. orchestrator_capabilities reports it; the permission picker shows
it ("What you approved (Supervised)"), disables broader modes, and a
start leaves out a saved mode above it instead of being refused.
- The T3 Code page shows the approved access and has a Change access
button that approves again with the saved address.
T3CodeLauncher (integration-t3code) owns the launch; T3CodeTicketStarts
(backend) ties it to the ticket and its activity. Tested against
Postgres, and once end to end against a real T3 Code.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 35 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c29fd412d9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Stacked on #693 (PP-409), which is on #692 and #691.
What
POST /orgs/:org/projects/:slug/tickets/:id/t3code/startstarts a ticket in the caller's own T3 Code. This is the single start that the start menu (PP-411) and the T3 Code assignee (PP-412) will both use.t3_thread_launchin the T3 Code project the member picked, or the one whose repository matches, with their model, effort and permission mode. In a worktree, the ticket's branch starts fromorigin/HEAD, or continues from the ticket's own branch.t3code_ticket_start(migration20261130193023_t3code_ticket_start).t3code_startedentry in the ticket's activity: "started a T3 Code thread in vite-react-template ↗", linking to the thread.The ticket's status and assignees are not changed.
Retries. The member's
clientRequestIdkeys both the stored start and T3 Code's own launch, so a retry returns the same thread. If the activity can't be recorded, the start is removed, so the next retry records it.Clear reasons. These fail before anything is sent to T3 Code:
T3CodeCannotStartThreads)T3CodeProjectNotChosen)An unreachable machine gets its own message. When T3 Code itself refuses a start, its explanation travels as
T3CodeError.detailand is shown to the member.Permission mode. A thread runs at most at the mode the member approved ProjectProject for, which
orchestrator_capabilitiesreports.How it's built
T3CodeLauncherinintegration-t3codehandles the launch.T3CodeTicketStarts, a new backend service, ties it to the ticket and its activity.TicketActivity.recordis called with an unchanged write, since a start doesn't touch the ticket file.Checks
bun run checkpasses, andbun run testgives 4,724 pass, 1 skip, 0 fail.🤖 Generated with Claude Code