GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): keep thread branch metadata consistent by maxktz · Pull Request #4926 · pingdotgg/t3code

Conversation

@maxktz

@maxktz maxktz commented Jul 30, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What Changed

  • save the checked-out branch when creating a thread without touching the branch picker
  • consistently omit the default branch from sidebar rows while keeping custom branches visible

Why

The branch picker displayed the current branch without persisting it. This made equivalent threads look different depending on whether the default branch had been explicitly reselected.

Checklist

  • This PR is small and focused
  • I explained what changed and why
Show AI summary

New draft-thread bootstraps now derive their persisted branch with resolveBranchToolbarValue, using the live checkout from Git status while preserving explicit new-worktree base selections. Sidebar V2 resolves the persisted branch through listRefs, so default-branch rows keep their existing branch-free presentation whether or not the dropdown was touched. The tooltip continues to render the persisted branch directly.

Focused verification passed: web typecheck, formatting, lint, BranchToolbar.logic.test.ts, and Sidebar.logic.test.ts.


Note

Low Risk
UI-only branch display and draft bootstrap metadata; no auth or server contract changes. Extra listRefs queries per local branch-backed row are bounded and project-scoped via query caching.

Overview
Aligns persisted thread branch with what the branch toolbar shows, and sidebar branch labels with the rule that default branches stay hidden.

Chat bootstrap — Draft thread creation no longer always saves activeThreadBranch. It now uses resolveBranchToolbarValue (env mode, worktree path, thread branch, live Git ref) so a untouched picker still records the checked-out branch.

Sidebar V2 — Card rows use resolveSidebarBranchLabel instead of always showing thread.branch. Local (non-worktree) threads load listRefs (cached per project, limit: 2) to detect the default branch; worktrees rely on gitStatus.isDefaultRef. The label stays blank while that resolution is pending.

Sidebar.logic — Adds resolveSidebarBranchLabel with unit tests.

Reviewed by Cursor Bugbot for commit 9d80ade. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix thread branch metadata consistency in sidebar and new thread creation

  • Sidebar rows now hide the branch label when the thread's branch matches the default branch, using a new resolveSidebarBranchLabel helper in Sidebar.logic.ts. The label is also suppressed until the default branch is determined.
  • New thread creation in ChatView.tsx now uses resolveBranchToolbarValue to resolve the branch instead of reading activeThreadBranch directly, aligning the created thread's branch with what the toolbar shows.
  • Behavioral Change: listRefs may now be called in sidebar rows to determine the default branch when a thread has a branch but no worktree path.

Macroscope summarized 9d80ade.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@maxktz
fix(web): persist thread branch metadata
9028155
@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 33611b40-e003-46e3-802c-601838ab8c7e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Jul 30, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Jul 30, 2026
View reviewed changes
Comment thread apps/web/src/components/SidebarV2.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Jul 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved 9d80ade

This PR fixes thread branch metadata consistency by reusing an existing tested function and adding simple UI logic to hide redundant default branch labels. Changes are self-contained, use established patterns, and include unit tests.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maxktz
codex: address PR review feedback (pingdotgg#4926)
388c89e
cursor[bot]
cursor Bot reviewed Jul 30, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 388c89e. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/web/src/components/SidebarV2.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Jul 30, 2026
View reviewed changes
@maxktz
fix(web): avoid default branch label flash
9d80ade
@macroscopeapp
macroscopeapp Bot dismissed their stale review July 30, 2026 06:00

Dismissing prior approval to re-evaluate 9d80ade

macroscopeapp[bot]
macroscopeapp Bot approved these changes Jul 30, 2026
View reviewed changes
@sethwebster sethwebster mentioned this pull request Aug 24, 2026
fix(web): sidebar follows a worktree thread's live branch #8126
Closed
13 tasks done
@juliusmarminge

juliusmarminge commented Sep 7, 2026

Copy link
Copy Markdown
Member

Closing as part of the open-PR backlog sweep (wave 1).

Reason: Thread branch metadata; later #4986 records checkout branch so PR badges show.
Related: #4986

Reopen if this is still wanted and you’re willing to rebase onto current main.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Sep 7, 2026
@TonybynMp4 TonybynMp4 mentioned this pull request Nov 1, 2026
[Bug]: Sidebar branch and copy-branch go stale when the agent renames the worktree branch #28463
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@maxktz @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.