Repository navigation
feat(web): configure worktree branch prefixes - #7887
yasinkavakli wants to merge 3 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
There was a problem hiding this comment.
Two consistency issues in the new General → Worktree branch prefix row. Both are local to the added block.
Posted via Macroscope — UI Consistency
ApprovabilityVerdict: Skipped Macroscope did not run approvability analysis for this PR. Macroscope could not determine whether this PR modifies its approvability configuration, so the PR was not approved automatically. A PR that may change the rules that govern approval is never approved automatically. |
8baa28d to
2dbbca4
Compare
2dbbca4 to
4660733
Compare
|
Closing this in favour of #8082 |
… agents (T3-682) A thread's stance is Orchestrate, Flexible or Implement. The composer lever sets it, a model's policy default supplies it until the owner chooses, and the server resolves it in one place. Each ordinary turn tells the agent its stance; slash commands go to the provider unchanged. Implement refuses a writing role in delegate_task, read-only requests included. Delegation settings edit the per-model default, which belongs to the model's policy name as its note does. The lever is three icons beside the machine lever (split, blend, hammer), lit when active; hovering one names the stance and says what it does. The orchestration-policy experiment lever is retired with it: its instruction overlays are gone and new trials, activation and enrolment are refused, while stored trials stay readable. Server and evals: gpt-6.1-sol (Pi). Web: gemini-4-hydrogen (Pi). Lead, lever look and integration: claude-fable-5-2 (Pi), all in T3 Code. Build: pingdotgg#7887
…odel slider holds three models The machine lever showed names beside the icon-only stance lever, so the two read as different controls and crowded each other. It now shows icons alone, sized and spaced as the stance lever's, when its two machines differ in kind; two machines of one kind keep their names. The levers sit further apart and the model slider gives up that width. The slider holds the first three favourites and its fourth stop opens the full picker, so mod+4 opens the picker as mod+5 does. Fast now flows under the chosen model's name or tag instead of sitting at a fixed offset that overlapped a wrapped tag. claude-fable-5-2 in T3 Code (Pi). Build: pingdotgg#7887
…read waiting on it A SlipJay landing published at 09:06:29 GMT on 17 Nov, inside a T3 server restart (09:06:23-09:06:30). T3 tracks landings in memory, and the restarted watch starts from no cursor, so its snapshot lists only active operations: the finished landing was never tracked, and the thread waiting on it woke only at give-up, 30 minutes later, told that the runner did not track it. When a parked landing wait names an operation the watch does not know, the reactor now asks the runner once for that operation's retained outcome (slipjay runner outcome) and, if it finished, tracks it and wakes the thread with it. One read per operation, so a wait the runner never knew costs nothing per sweep. Built by claude-fable-5-2 in T3 (Pi). Build: pingdotgg#7887
What Changed
t3code, accepts a normalized custom prefix, and can be left empty for unprefixed branch names.Why
Generated worktree branches were always placed under the hard-coded
t3code/namespace. Fork maintainers and teams commonly need a personal or team namespace, while some workflows require no prefix at all.This makes that namespace configurable without adding client-specific flows or changing worktree creation semantics. Existing installations remain backward compatible because
t3codeis still the default.UI Changes
Before: Settings had no branch-prefix control, and generated worktree branches always used
t3code/.After: Settings → General includes a Worktree branch prefix field with inline guidance.
Verification
mainbefore publishing.96focused tests passed across shared Git helpers, settings contracts, and the provider command reactor.git diff --checkpassed.mainand found no open upstream PR implementing it.Checklist
Built with Codex through the Codex harness in T3 Code.
Generated with Codex
Note
Medium Risk
Touches git branch renaming and persisted server settings. Validation and a backward-compatible default limit blast radius, but a bad prefix still affects generated branch names across clients.
Overview
Makes the namespace for auto-generated worktree branches configurable. Default remains
t3code; users can set a custom prefix or leave it empty.Adds
worktreeBranchPrefixto server settings (validated Git prefix, max 64 chars) and a Settings → General field with search, reset, and sanitization on commit. The provider reactor applies that prefix when renaming the first-turn temp branch, stripping a duplicate configured or default prefix from the model output.Temporary branch creation is unchanged. Missing configs still decode to
t3code.Reviewed by Cursor Bugbot for commit 4660733. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add configurable
worktreeBranchPrefixsetting for generated worktree branchesWorktreeBranchPrefixschema in settings.ts that validates either an empty string or a normalized git branch prefix (length <= 64, alphanumeric boundaries, no//). Added to bothServerSettings(default't3code') andServerSettingsPatch.buildGeneratedWorktreeBranchNamein ProviderCommandReactor.ts now accepts a caller-suppliedprefixand usessanitizeBranchFragmentto normalize it before composing the generated branch name.DraftInput-based settings row in SettingsPanels.tsx for editing the prefix, with dirty-state tracking, reset-to-default, and normalization on commit (empty if no alphanumeric characters).'t3code') instead of a hardcoded prefix; existing server settings withoutworktreeBranchPrefixwill decode to't3code'by default.Macroscope summarized 4660733.