Skip to content

fix(fix): group same-file sites only when their fix is in the same place - #96

Merged
lucasbraum merged 1 commit into
mainfrom
fix/assisted-grouping
Oct 13, 2026
Merged

lucasbraum merged 1 commit into
mainfrom
fix/assisted-grouping

Conversation

@lucasbraum

@lucasbraum lucasbraum commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

#87 sends manual sites of the same rule in one file to the patch agent as one task. But the task can edit only the first site's related declarations.

On alanagoyal/alanagoyal @ 22aa5f1 (React 19), components/apps/notes/notes-app.tsx has two RefObject<HTMLDivElement | null> errors, at lines 91 and 119. Their fixes live in two different files: the containerRef prop types of the mobile presenter and of the desktop presenter. Grouped, the agent could reach only the mobile one, and the task is accepted only when both errors are gone. It answered "No patch submitted" three times, and both sites stayed manual. The default agent went from 12/12 sites and 3/3 verified before #87 to 10/12 and 0/3 after.

Sites now group only when they share both:

  • the root cause: the same rule, or the same change path when there is no rule (as before);
  • the likely fix location: the same repository declarations behind their compiler errors, or none.

saas-starter-kit's two period reads (#87's case) link to no repository declaration, so they still go out as one task. Two prop types in two files are two tasks.

Test

related-declaration.test.ts reproduces the alanagoyal layout with the real compiler:

  • two presenters' prop files and one call site with two TS2322 errors of the same rule;
  • a fixer that widens whatever prop types its request lets it edit.

It expects two requests (mobile.ts, then desktop.ts) and both sites fixed. Against main's assisted.ts it fails with three requests, all limited to mobile.ts. #87's grouping test still passes.

pnpm typecheck, pnpm lint and pnpm public:check pass, and pnpm test gives CLI 413 passed and core 1,290 passed. The one core failure was an assisted test that timed out in the full parallel run, with the machine at load 15 under another benchmark. It passes alone and with its file, and it doesn't exercise grouping.

alanagoyal, default agent, 3 runs

Pending, run once the machine is quiet. Target: 12/12 sites, 3/3 verified.

🤖 Generated with Claude Code

#87 sent sites of one rule in one file as one task, but the task could
edit only the first site's related declarations. alanagoyal notes-app.tsx
has two RefObject<T | null> errors fixed in two presenters' props: the
agent could reach one, so neither was accepted (12/12 became 10/12). Sites
now group when they share the root cause (rule, or change path) and the
same repository declarations behind their errors.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Lucas Braum <[email protected]>
@lucasbraum
lucasbraum marked this pull request as ready for review October 13, 2026 02:51
@lucasbraum
lucasbraum merged commit b9c1d71 into main Oct 13, 2026
8 checks passed
@lucasbraum
lucasbraum deleted the fix/assisted-grouping branch October 13, 2026 02:51
@uptide-release uptide-release Bot mentioned this pull request Oct 13, 2026
@lucasbraum

Copy link
Copy Markdown
Collaborator Author

Results, posted after merge: alanagoyal/alanagoyal @ 22aa5f1 with the default agent, 3 runs (claude-sonnet-5-5, the printed Next command, this PR's build dd6cfbc, caffeinate -i, quiet machine).

Run Wall Sites by agent Manual Types Verified Cost
1 250s 12 0 13 → 0 yes $0.084
2 240s 12 0 13 → 0 yes $0.086
3 245s 12 0 13 → 0 yes $0.085

12/12 and 3/3, back to where the default agent was before #87 (it was 10/12 and 0/3 with the grouping). The 13th site is mechanical.

lucasbraum pushed a commit that referenced this pull request Oct 13, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## [email protected]

### Minor Changes

- [#93](#93)
[`765de77`](765de77)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `uptide fix
<package>` with Anthropic selected runs assisted fixes as one Claude
Agent SDK session in the temporary clone, covering the package's manual
sites and their rule knowledge, gated once at the end of the session. It
is the default when `@anthropic-ai/claude-agent-sdk`, an optional peer
that is never bundled, is installed next to Uptide; without it, the
patch executor runs and the output says what to install. Use `--agent
patch` to opt out; other providers keep the patch executor. See
`docs/decisions/0016-agent-sdk-executor.md`.
  
Stripe period helpers accept both endpoint payload shapes, and both
executors share the same period knowledge.

- [#94](#94)
[`5f54bad`](5f54bad)
Thanks [@lucasbraum](https://github.com/lucasbraum)! -
`uptide/onboarding` loads where it broke: under plain Node ESM, Vitest
and Turbopack, and in a browser bundle. It no longer inlines `yaml` (its
CommonJS build called `require("process")` inside an ES module); `yaml`
is now a dependency of the package. The entry is pure, with no file
system and no Node globals: `loadUptideConfig` and `snapshotFromDisk`
move to `uptide/onboarding/node` (breaking for code that imported them
from `uptide/onboarding`). The command line is unchanged.

- [#92](#92)
[`b21a911`](b21a911)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - The Uptide
Action: `action.yml` at the root of this repository now runs Uptide in a
repository's own GitHub Actions (`mode: list | check | fix`, `package`,
`config`, `anthropic-api-key`, `app-url`). It builds the engine of its
own pinned commit, migrates with `--agent sdk` by default, and opens
draft pull requests with a short-lived installation token of the Uptide
GitHub App, obtained for the job's OIDC token, so those pull requests
run the repository's CI. Each run writes an `uptide.run/v1` report to
the job summary and sends it to the Uptide app; a failed upload is a
warning. It replaces the earlier Renovate/Dependabot pull-request
checker that lived at the same path; workflows pinned to an earlier
commit keep running that one.
  
New `uptide/report` export: the `uptide.run/v1` types, its JSON Schema
(also `uptide/report/schema.json`), a validator and the summary
renderer. The report holds no source code, diffs, snippets or
environment values: paths, line numbers, symbol names and counts only.
  
`uptide init` and the "Add Uptide" pull request now write `permissions:
contents: read, id-token: write`; the Action pushes with the Uptide
GitHub App's token instead of `GITHUB_TOKEN`.

### Patch Changes

- [#96](#96)
[`b9c1d71`](b9c1d71)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Assisted fixes
group two sites of one file into one task only when their fix is in the
same place: the same repository declarations behind each compiler error,
or none. Two React 19 `RefObject<T | null>` errors in one file whose
prop types live in two components were sent as one task that could edit
only the first component, and both stayed manual (a regression in
0.8.0).

Co-authored-by: uptide-release[bot] <338861287+uptide-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant