Skip to content

[WRONG BRANCH] CI mirror for upstream PR 5905 (do not merge) - #2

Closed
halysondev wants to merge 6 commits into
ci-base-devfrom
feat/cursor-local-installer
Closed

halysondev wants to merge 6 commits into
ci-base-devfrom
feat/cursor-local-installer

Conversation

@halysondev

Copy link
Copy Markdown
Owner

Runs the upstream pull_request workflows (Cross-platform CI, Service lifecycle, React Doctor) against the exact head of lidge-jun/opencodex PR 5905, because the upstream runs are waiting for maintainer approval. Not for merge; closed once the results are reported upstream.

@github-actions

Copy link
Copy Markdown

✅ Deterministic PR hygiene checks passed.

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

⏳ DRAFT

  • wrong target branch (ci-base-dev); retarget to dev. PR description needs work (thin). UI screenshot required.

What to do

  • Retarget this PR to dev — all contributions go to dev.
  • Add a real Summary and Test plan to the PR description.
  • Add a screenshot of the UI change to the PR description.

Its title has been prefixed with [WRONG BRANCH].
This pull request was already a draft. Its draft status will be preserved after every issue above is resolved.

@github-actions github-actions Bot changed the title CI mirror for upstream PR 5905 (do not merge) [WRONG BRANCH] CI mirror for upstream PR 5905 (do not merge) Sep 26, 2026
@halysondev
halysondev force-pushed the feat/cursor-local-installer branch 2 times, most recently from 477a63b to edcb8b9 Compare September 27, 2026 04:16
@halysondev halysondev closed this Sep 27, 2026
@halysondev halysondev reopened this Sep 27, 2026
@halysondev
halysondev force-pushed the feat/cursor-local-installer branch from edcb8b9 to 19948a3 Compare September 27, 2026 14:13
@halysondev halysondev closed this Sep 27, 2026
@halysondev halysondev reopened this Sep 27, 2026
@halysondev
halysondev force-pushed the feat/cursor-local-installer branch from 19948a3 to d89aa59 Compare September 27, 2026 16:51
@halysondev halysondev closed this Sep 27, 2026
@halysondev halysondev reopened this Sep 27, 2026
halysondev and others added 6 commits September 28, 2026 11:51
…regular Cursor

When only regular Cursor is installed, the Integrations > Cursor tab now asks
Cursor's own `cursor-local` update channel which Private Inference installer
it advertises for this host and shows that version with a link to the
`downloads.cursor.com/local-mode/` installer, instead of a dead-end "not
found". The lookup is read-only: opencodex never downloads, launches or
installs anything, and an unreachable or unusable channel answer degrades to
a plain "could not be resolved right now" notice.

- src/integrations/cursor-local-installer.ts resolves the manifest for the
  host OS and architecture (Intel Mac, arm64 Linux and Windows on Arm get
  their own builds), accepts only downloads.cursor.com/local-mode URLs with
  a version, and maps the Linux channel's .AppImage.zsync delta metadata to
  the sibling .AppImage installer.
- Detection also looks for install roots under /usr/share on Linux, where
  the Private Inference .deb installs (/usr/share/cursor).
- The status payload gains `localInstaller`; the page renders the hint and
  keeps the guide link. The now-unused `regularOnly` string is removed from
  all locales.
- Docs: the Cursor guide (English and the seven translations) and
  structure/clients/integrations.md.

Closes lidge-jun#5679

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d hosts

Addresses the maintainer and Copilot review on lidge-jun#5905.

- Cache the cursor-local answer per update host and platform (30 minutes
  after a success, 5 after a failure) and share concurrent lookups, so the
  Cursor tab's 15-second status poll no longer waits on api2.cursor.sh.
- Map only x64 and arm64 on Windows, macOS and Linux. Any other CPU or OS
  resolves to `unsupported-platform` with no request and no link, instead of
  another architecture's build or a probe that starts with Windows.
- Reject blank or whitespace-only manifest versions.
- The link is a file, so the button reads "Download the installer"; the
  not-found notice again explains why regular Cursor cannot reach the proxy.
  Both strings are updated in all ten locales.
- Guide (English and seven translations) and structure doc updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Addresses the CodeRabbit review on lidge-jun#5905.

- The hint now says the update channel advertises the Private Inference
  installer "version {version}", so the number is not read as the regular
  Cursor release, in all ten locales.
- `localInstaller` is optional in the GUI contract: a hub that predates the
  lookup answers without it, and the page renders the unavailable notice
  instead of throwing. GUI test covers the legacy payload.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013RrHbUaeY8F2fZ5UENGc8H
Addresses the CodeRabbit review on lidge-jun#5905: name the missing thing as "a
suitable installer for this computer" instead of a possessive with no owner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013RrHbUaeY8F2fZ5UENGc8H
The darwin-arm64 and darwin-x64 cursor-local manifests return only
{ url, name }, with the version in name, so parseManifest found no version
and macOS users were told no installer could be determined. Fall back to
name after version/productVersion, and cover both Darwin architectures.

Co-authored-by: codingbooo <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013RrHbUaeY8F2fZ5UENGc8H
…r action

The Cursor tab polls GET /api/native-integrations/cursor while it is open,
and a regular-only install made that status call await the remote
cursor-local manifest. Move the lookup to its own route,
GET /api/native-integrations/cursor/local-installer, which the dashboard
calls only from a "Look up the Private Inference installer" button. The
status route no longer carries localInstaller and makes no remote request;
a regression pins that for a regular-only install.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013RrHbUaeY8F2fZ5UENGc8H
@halysondev
halysondev force-pushed the feat/cursor-local-installer branch from d89aa59 to 2b3dacd Compare September 28, 2026 14:52
@halysondev halysondev closed this Sep 28, 2026
halysondev pushed a commit that referenced this pull request Sep 28, 2026
…flag tool errors, system prompt in #2 (carry lidge-jun#6092) (lidge-jun#6178)

* fix(devin): system prompt in #2, tool-error flag, Gemini schemas, history overflow

- Send the leading system text as GetChatMessage #2 instead of folding it into
  the first user prompt. Live on swe-1-6 with a ~6.7k-token system prompt the
  turn-2 cache ratio is unchanged (6688/6715 vs 7072/7097) and the prompt is
  smaller; swe-1-6, swe-2-medium, gemini and claude all obey #2.
- Mark failed tool results with ChatMessagePrompt lidge-jun#9 tool_result_is_error
  instead of an in-band "ERROR:" prefix.
- Rewrite JSON-Schema type arrays to anyOf in tool parameters for Gemini uids,
  which Cognition refuses with invalid_argument on every turn.
- Surface a pre-output invalid_argument on a history near or past the model's
  input window as context_length_exceeded so Codex compacts; small requests
  with the same code stay a plain 400.
- Correct the lidge-jun#15 (CortexTrajectoryReference), lidge-jun#17 prompt_id and lidge-jun#22
  execution_id comments.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 29688bf)

* fix(devin): measured overflow boundary, per-type Gemini branches, tool-error marker

- Overflow: binary-searched live on swe-1-6 (200k window) the refusal sits at
  ~200-203k real tokens for prose and JSON alike, and a 32000 output cap does
  not move it. Characters per token ran 1.33-5.53 across samples, so the
  chars/4 estimate is replaced by a word-piece count (1.00-1.54x real) at 95%
  of the window: every sample at the window is caught, none at 60% is.
- Gemini schemas: `{type:[T,"null"], ...}` becomes anyOf branches that carry
  the type-specific keywords (items, properties, ...); an existing anyOf is
  folded in rather than nested under allOf. Draft-7 `dependencies` is walked as
  a schema map with name lists left as data.
- Tool errors keep the in-band ERROR: marker beside lidge-jun#9: with a neutral result
  flagged as an error only gemini reported a failure; swe-1-6, gpt-6-sol-low
  and gpt-5-6-luna-low read it as success.
- A request with only system text keeps it as a user prompt instead of
  sending no prompts.
- Docs: describe the context_length_exceeded reclassification beside the
  allowDevinInvalidArgument recovery option.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit d84edae)

* fix(devin): keep outer constraints when folding a Gemini anyOf

Folding each existing anyOf branch into the outer keywords let a branch
override a contradicting outer keyword, so `{maxLength: 5, anyOf:
[{maxLength: 50}]}` loosened to 50. On any such disagreement, keep both
constraints under allOf instead; live, gemini-3-8-flash-medium accepts
allOf.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit db28e2d)

* docs(devin): match the collapseSystemIntoUser example to the #2 system prompt

The example still showed the leading system messages folded into the
first user turn, which now travel in request #2. Show a mid-conversation
system run instead, with the real blank-line join, and note that a
system-only request passes through whole.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit b2d9ded)

* docs(devin): show the blank-line join in the collapse example

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 3232330)

* fix(devin): keep both constraints when a Gemini type union and anyOf are disjoint

When no existing anyOf branch shared a type with the type array, the
fallback kept the anyOf and dropped the type union, so the branches
admitted types the node never allowed. Keep both under allOf, the same
form the conflict path uses; live, gemini-3-8-flash-medium accepts it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit b87b332)

* fix(devin): classify overflow from the selected catalog window

Co-authored-by: Sayo <[email protected]>

* fix(devin): preserve null constraints in Gemini schema rewrite

Co-authored-by: Sayo <[email protected]>

* docs(devin): record malformed-schema overflow ambiguity

Co-authored-by: Sayo <[email protected]>

* fix(devin): preserve outer schema constraints on nullable types

Co-authored-by: Sayo <[email protected]>

* fix(devin): estimate overflow from transmitted tool descriptions

Co-authored-by: Sayo <[email protected]>

* docs(structure): keep the effective Devin family default in the adapter row

Co-authored-by: Sayo <[email protected]>

---------

Co-authored-by: Sayo <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
@halysondev halysondev reopened this Sep 28, 2026
@halysondev halysondev closed this Sep 29, 2026
@halysondev
halysondev deleted the feat/cursor-local-installer branch September 29, 2026 18:28
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