-
Notifications
You must be signed in to change notification settings - Fork 12
t3code-inspired features: model slug, PR ahead hints, chat UX, settings #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
236f75a
aafb1f3
96c9035
0331e3a
10f18c2
c8f027a
84ca37f
f000eee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5510,6 +5510,9 @@ export function createPrService({ | |
| primaryBranchRef: primaryLane?.branchRef ?? null, | ||
| }); | ||
| const dirty = lane.status?.dirty === true; | ||
| // Same `ahead` count the lane list already shows vs the lane's configured base | ||
| // (`resolveStableLaneBaseBranch`); keep wording aligned with that UI signal. | ||
| const commitsAheadOfBase = Math.max(0, Number(lane.status?.ahead ?? 0) || 0); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [🟡 Medium] [🔵 Bug] This field is documented and displayed as "ahead of // apps/desktop/src/main/services/prs/prService.ts
const defaultBaseBranch = resolveStableLaneBaseBranch({
lane,
parent,
primaryBranchRef: primaryLane?.branchRef ?? null,
});
const dirty = lane.status?.dirty === true;
const commitsAheadOfBase = Math.max(0, Number(lane.status?.ahead ?? 0) || 0);I verified |
||
| const hasExistingPr = existingPr !== null && (existingPr.state === "open" || existingPr.state === "draft"); | ||
| const canCreate = !hasExistingPr; | ||
| const blockedReason = hasExistingPr | ||
|
|
@@ -5524,6 +5527,7 @@ export function createPrService({ | |
| defaultBaseBranch, | ||
| defaultTitle: lane.name, | ||
| dirty, | ||
| commitsAheadOfBase, | ||
| hasExistingPr, | ||
| canCreate, | ||
| blockedReason, | ||
|
|
||
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.
[🟠 High] [🔵 Bug]
Removing the dot-directory guard makes the auto-allowed
greptool recurse through every hidden subtree when the caller searches the repo root, including ADE’s machine-local.ade/secretsfiles.collectFiles()already walks an explicitly targeted hidden directory, so this change is not required to supportpath: ".github"; it only broadens default searches into sensitive metadata. BecausegrepSearchreturns raw matching lines and has no redaction layer, an agent can now exfiltrate API keys / sync tokens with a normal repo-root grep. Restore the hidden-dir skip for broad walks and only descend into dot-directories when the requestedtargetitself is inside one.