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 — Enable Create PR for pushed branches that are ahead of main by notkainoa · Pull Request #2081 · pingdotgg/t3code

Conversation

@notkainoa

@notkainoa notkainoa commented Apr 16, 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

Makes Create PR button available when a branch has already been pushed and is ahead of the base branch, even if there are no local changes left to push.

Why

The button was incorrectly disabled for branches that were clean locally but still had changes on remote, which made the flow feel blocked and confusing.

Before

image image

As you can see the "create pr" button is disabled even though this branch is ahead by 1 commit (the commit is already pushed to remote though).

After

image

Note

Enable Create PR for pushed branches ahead of main using aheadOfBaseCount

  • Adds aheadOfBaseCount (commits ahead of the default/base branch) to GitStatusDetails, VcsStatusRemoteShape, and all downstream status objects throughout the stack.
  • GitVcsDriverCore computes aheadOfBaseCount via computeAheadCountAgainstBase whenever a refName is present, independent of upstream tracking configuration.
  • GitActionsControl logic now gates the Create PR quick action and menu item on aheadOfBaseCount > 0 instead of the previous aheadOfDefaultCount ?? aheadCount fallback, so pushed branches without an upstream are correctly detected as ahead of base.
  • Behavioral Change: VcsStatusRemoteShape now requires aheadOfBaseCount as a NonNegativeInt field — any client or test constructing this shape must include the new field.

Macroscope summarized bce2d06.


Note

Medium Risk
Extends the VCS status contract and recomputes branch-ahead metrics, which can affect git status behavior and UI action enablement across the app. Changes are localized but touch shared contracts and git parsing logic used broadly.

Overview
Enables PR creation for branches that are clean locally but still ahead of the base branch. Adds aheadOfBaseCount to the shared VcsStatusRemoteResult/VcsStatusResult contract and plumbs it through server git status responses (including non-repo defaults).

GitVcsDriverCore now computes aheadOfBaseCount for any checked-out ref (even with an upstream), using it as the fallback aheadCount when no upstream is configured. The web GitActionsControl logic switches PR eligibility and disabled-copy from aheadCount/aheadOfDefaultCount to aheadOfBaseCount, so pushed-but-ahead branches show Create PR instead of “no action.”

Test harness improvements add preferRealGitOnPathForTests() and update many fixtures to include the new field; one web env test also increases its timeout.

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@notkainoa
Add ahead-of-base PR detection
d441263
- Track `aheadOfBaseCount` through git status contracts and clients
- Let Create PR use remote branch divergence instead of only local ahead count
- Preserve push behavior for branches with unpushed commits
@coderabbitai

coderabbitai Bot commented Apr 16, 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

Run ID: e8bd0b0e-794b-4549-a662-10a382911246

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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 and usage tips.

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:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Apr 16, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Apr 16, 2026
View reviewed changes
Comment thread apps/server/src/provider/Layers/ClaudeAdapter.ts Resolved

Uh oh!

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

juliusmarminge
juliusmarminge reviewed Apr 16, 2026
View reviewed changes
Comment thread apps/server/src/provider/Layers/ClaudeAdapter.ts Resolved

Uh oh!

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

notkainoa added 4 commits April 16, 2026 13:20
@notkainoa
Merge remote-tracking branch 'upstream/main' into t3code/enable-creat…
313f8d4
…e-pr-button
@notkainoa
Remove unrelated ClaudeAdapter change
9af889b
@notkainoa
Fix ahead-of-base status fixtures
fd242c0
@notkainoa
Stabilize tests for ahead-of-base status
b7f5f39
@notkainoa
notkainoa marked this pull request as ready for review April 16, 2026 21:47
@macroscopeapp

macroscopeapp Bot commented Apr 16, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

This PR changes runtime behavior for when the 'Create PR' button appears, modifying UI logic conditions and priority ordering. Unresolved review comments identify a potential bug (missing default branch guard) and a performance issue (duplicate git process calls) that need attention.

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.

@notkainoa
Merge branch 'main' into t3code/enable-create-pr-button
0f9418f
cursor Bot pushed a commit to arul28/DAEX that referenced this pull request Apr 18, 2026
@cursoragent @arul28
feat: port t3code UX — model slug, code copy, sounds, PR ahead hint
236f75a
Inspired by upstream t3code PRs:
- pingdotgg/t3code#1 (resolveModelSlug-style normalization)
- pingdotgg/t3code#2092 (code block copy for touch / position / clipboard fallback)
- pingdotgg/t3code#2057 (completion chime when agent turn settles)
- pingdotgg/t3code#2081 (surface ahead-of-base for clean pushed branches on mobile create PR)

Adds resolveModelSlug with optional provider hint, chat code copy controls and
non-secure clipboard fallback, optional Web Audio completion sound with settings,
and commitsAheadOfBase on mobile PR create eligibility with iOS subtitle.

Co-authored-by: Arul Sharma <[email protected]>
@arul28 arul28 mentioned this pull request Apr 18, 2026
t3code-inspired features: model slug, PR ahead hints, chat UX, settings arul28/DAEX#163
Merged
arul28 added a commit to arul28/DAEX that referenced this pull request Apr 20, 2026
@arul28 @cursoragent
t3code-inspired features: model slug, PR ahead hints, chat UX, settin…
9cd7772
…gs (#163)

* feat: port t3code UX — model slug, code copy, sounds, PR ahead hint

Inspired by upstream t3code PRs:
- pingdotgg/t3code#1 (resolveModelSlug-style normalization)
- pingdotgg/t3code#2092 (code block copy for touch / position / clipboard fallback)
- pingdotgg/t3code#2057 (completion chime when agent turn settles)
- pingdotgg/t3code#2081 (surface ahead-of-base for clean pushed branches on mobile create PR)

Adds resolveModelSlug with optional provider hint, chat code copy controls and
non-secure clipboard fallback, optional Web Audio completion sound with settings,
and commitsAheadOfBase on mobile PR create eligibility with iOS subtitle.

Co-authored-by: Arul Sharma <[email protected]>

* fix: banner dismiss controls, resilient completion sound, tests

- Dismiss missing-AI and GitHub setup banners per session (inspired by
  pingdotgg/t3code#773)
- Resume suspended AudioContext, defer AudioContext.close, use global setTimeout
- Add vitest coverage for sound helper and banner dismiss; extend appStore prefs test

Co-authored-by: Arul Sharma <[email protected]>

* feat(settings): appearance tab with chat font preview (t3 #2174)

- New Appearance settings: theme swatches, chat font size 12–24px with live
  ChatMarkdown preview, copy-button position + completion sound (moved from General)
- chatFontSizePx in appStore; work chat scales via ChatSurfaceShell zoom
- resolveModelSlug: exact getModelById before provider-hint lowercasing (review)
- iOS Create PR lane subtitle when commitsAheadOfBase is 0
- A11y: label range input; fix preview sample template literal

Co-authored-by: Arul Sharma <[email protected]>

* fix: remove upstream PR link from UI; cross-browser chat scaling

- Appearance: drop user-visible t3code/GitHub link; keep neutral copy
- ChatSurfaceShell: scale header/body/footer via transform + inverse
  dimensions (Firefox-safe) instead of CSS zoom; contentScale prop
- AgentChatPane: pass contentScale from chat font preference
- agentTurnCompletionSound: module + function docstrings (CodeRabbit hint)
- Add ChatSurfaceShell scale wrapper tests with cleanup between cases

Co-authored-by: Arul Sharma <[email protected]>

* fix: address CI failures and review feedback on PR branch

Repair grepSearch JS-fallback tests by routing ripgrep exec through a test hook; relax TerminalView WebGL expectation for headless CI; play completion sound only on successful turns; preserve case-sensitive model refs with provider hints; improve Appearance preview layout, a11y, and clipboard cleanup; keep banner dismissals across project switches; make iOS commitsAheadOfBase backward compatible and show lane subtitles.

Co-authored-by: Arul Sharma <[email protected]>

* fix: safer repo-wide grep fallback, chat markdown code blocks, copy polish

Skip hidden root-only dirs (e.g. .ade) in JS grep when searching the whole repo while still entering .github; add regression test. Route ChatMarkdown fenced blocks through HighlightedCode so copy placement applies in previews. Stub WebGL canvas in TerminalView tests instead of weakening assertions. Tighten Appearance section labels and helper copy to sentence case.

Co-authored-by: Arul Sharma <[email protected]>

* Normalize config paths, runpage & chat UI

Normalize project config paths and improve run-page, chat UI, and related behavior.

Summary of changes:
- Project config: add path normalization helpers (normalizeConfigPath, projectRelativePath, normalizeProjectCwd/Command) and apply them when validating, saving, and returning snapshots so absolute project-root paths are converted to portable relative paths. Persist normalized shared/local in snapshots.
- Tests: add unit test to verify project-root absolute paths are normalized and that saved ade.yaml contains portable paths.
- RunPage refactor: introduce helpers to convert absolute paths to project-relative, build/update process config definitions, handle local vs shared placement (localOnly), and add upsert/remove helpers for processes and stack buttons. Adjust save logic and dependencies.
- Grep search: surface descriptive "Invalid regex pattern" errors from JS fallback and improve glob handling to match bare filenames for patterns like **/*.ts; add tests for invalid regex and glob edge cases.
- IPC: catch errors from resolveLaneOverlayContext during lane delete, log a warning, and continue.
- App shell & store: move per-session banner-dismiss state into app store (avoid local-state leaks) and use store dismiss actions.
- Chat & code UI: switch many inline styles to CSS variables, improve code copy button (auto/sticky mode), better diff coloring via styles, and style enhancements for code blocks, inline code, and tables. Wire code-copy position from store.
- Agent sounds & settings: add volume and quiet-when-focused preferences, pass options to playAgentTurnCompletionSound, and update AppearanceSection UI (chat font-size swatches, sound controls, terminal options import).
- Misc: make .ade/ade.yaml use project-relative script paths and update finalize.md to add a Mobile Parity agent checklist and instructions.

Why: make config files portable across machines, provide clearer errors and more ergonomic UI/UX for chat/code blocks, and ensure consistent handling of local vs shared config changes when editing processes from the Run page.

* Improve glob/path handling and small UI/accessibility fixes

Enhance grep glob matching and path normalization, add tests, and apply minor UI/accessibility tweaks.

- grepSearch: Normalize backslashes in file globs, detect when a glob includes directory components, and match against relative file paths when appropriate. Rewrote globToRegex to correctly handle **/, **, *, ?, and {a,b} patterns while preserving directory semantics. Added tests to exercise directory globs and JS fallback behavior.

- projectConfigService: Add utilities to detect absolute paths across platforms, infer project-relative paths from foreign-platform absolute paths (e.g. Windows paths on POSIX), and return portable relative paths for config saving. Added a test to ensure foreign absolute process paths are normalized to portable relative paths in saved config.

- CodeHighlighter: Adjust copy button rendering so the auto position renders consistently.

- AppearanceSection: Add aria-pressed to theme swatch button and an aria-label to the custom terminal font input to improve accessibility.

These changes improve cross-platform behavior for globs and config paths and address minor UX/accessibility issues.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Arul Sharma <[email protected]>
notkainoa added 2 commits May 8, 2026 17:54
@notkainoa
Merge upstream/main into t3code/enable-create-pr-button
4cfe2b9
@notkainoa
Merge remote-tracking branch 'origin/t3code/enable-create-pr-button' …
bce2d06
…into t3code/enable-create-pr-button
cursor[bot]
cursor Bot reviewed May 11, 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 and found 2 potential issues.

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 bce2d06. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/vcs/GitVcsDriverCore.ts
);
}

const fallbackAheadCount = !upstreamRef && refName ? aheadOfBaseCount : null;

@cursor cursor Bot May 11, 2026

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.

Duplicate git process spawn for same computation

Medium Severity

computeAheadCountAgainstBase(cwd, refName) is called unconditionally at line 1250 to compute aheadOfBaseCount, but the aheadOfDefaultCount fallback at line 1270 calls the same function with the same arguments again when fallbackAheadCount === null (i.e., when there IS an upstream). This spawns redundant git processes (resolveBaseBranchForNoUpstream + rev-list --count) on every status poll for non-default branches with an upstream — the exact scenario this PR targets. The value at line 1270 could simply reuse aheadOfBaseCount.

Additional Locations (1)
  • apps/server/src/vcs/GitVcsDriverCore.ts#L1248-L1252
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit bce2d06. 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/GitActionsControl.logic.ts
!hasChanges &&
!hasOpenPr &&
hasDefaultBranchDelta &&
isAheadOfBase &&

@cursor cursor Bot May 11, 2026

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.

Missing default branch guard in menu items

Low Severity

canCreatePr in buildMenuItems uses isAheadOfBase without checking !gitStatus.isDefaultRef. The old hasDefaultBranchDelta was implicitly zero on the default branch because aheadOfDefaultCount was only computed for non-default branches. The new aheadOfBaseCount is computed unconditionally and can be positive on the default branch if an alternative base branch candidate (like "master") exists, incorrectly enabling the "Create PR" menu item on the default branch.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit bce2d06. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
@juliusmarminge

juliusmarminge commented May 11, 2026

Copy link
Copy Markdown
Member

Already doable

notkainoa reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

1 similar comment
@juliusmarminge

juliusmarminge commented May 11, 2026

Copy link
Copy Markdown
Member

Already doable

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge closed this May 11, 2026
@only21mil only21mil mentioned this pull request Nov 1, 2026
fix(mobile): Git quick action offers Create PR for a pushed branch with no PR #28652
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@juliusmarminge juliusmarminge juliusmarminge left review comments
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

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:trusted Author is trusted by repo permissions or 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

@notkainoa @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.