Repository navigation
fix(fix): group same-file sites only when their fix is in the same place - #96
Merged
Merged
Conversation
#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]>
Collaborator
Author
|
Results, posted after merge: alanagoyal/alanagoyal @ 22aa5f1 with the default agent, 3 runs (
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.tsxhas twoRefObject<HTMLDivElement | null>errors, at lines 91 and 119. Their fixes live in two different files: thecontainerRefprop 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:
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.tsreproduces the alanagoyal layout with the real compiler:It expects two requests (
mobile.ts, thendesktop.ts) and both sites fixed. Against main'sassisted.tsit fails with three requests, all limited tomobile.ts. #87's grouping test still passes.pnpm typecheck,pnpm lintandpnpm public:checkpass, andpnpm testgives 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