Skip to content

refactor(server): isolate LastCode HTTP carries - #924

Merged
lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/reseat-http-carries
Dec 1, 2026
Merged

lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/reseat-http-carries

Conversation

@lastobelus

@lastobelus lastobelus commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Problem

Two Incubator carries put LastCode behavior in upstream HTTP code, which gets in the way of replaying upstream changes. This PR re-seats both. Both behaviors stay, because upstream has no equivalent.

  • Desktop renderer origins: this conflict reproduced when upstream extracted the origin list from the main HTTP module.
  • Managed preview media: the upstream file-level trials merged this hunk cleanly.

Change

  • Managed preview media (source commit):
    • The signed asset dispatcher now hands off to the existing fork-owned module immediately after asset resolution.
    • The module now handles typed failures itself, returning the same private, empty 502. It also accepts the request method directly.
  • Renderer origins (source PR): LastCode's production and development origins are now derived in the fork-owned desktop distribution module. They're spread into the allowlist shared by dev API CORS and cookie auth.
  • Tests:
    • Desktop CORS cases moved out of the upstream test file into http.lastcode.test.ts.
    • Existing managed media tests remain.
    • A new case covers preview listener failure.

Verification

  • Focused tests: 136 passed, with one existing skip.
  • Checks: changed-file checks and Quick CI passed.
  • Replay: the three touched upstream-owned files merged cleanly against the checked upstream main. This was a file-only replay.

Local review: 1 round with GPT-6.1 Terra (xhigh) at 2729dfb, approved.

Model: GPT-6.2 Sol. Harness: Codex.

Keep managed preview media dispatch just after signed asset resolution. Handle listener failures in the preview module so replay can retain upstream's file response code intact.

Carry-Group: incubator
Carry-Observation: Managed media serving depends on the Incubator preview lease lifecycle.
Carry-Evidence: 0e5c870
Model: GPT-6.2 Sol
Harness: Codex
Keep the LastCode renderer origins beside the scheme definitions and extend the existing shared allowlist. Move the matching CORS cases into the fork's HTTP tests.

Carry-Group: incubator
Carry-Observation: Renderer origin support follows the LastCode desktop distribution.
Carry-Fix: #315
Carry-Evidence: 33fd1c3
Model: GPT-6.2 Sol
Harness: Codex
@lastobelus
lastobelus marked this pull request as ready for review December 1, 2026 15:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T15:28:01.970374Z 2729dfb Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 2729dfb806

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lastobelus
lastobelus merged commit b6dc0bb into lastcode/main Dec 1, 2026
48 checks passed
@lastobelus
lastobelus deleted the lastcode/reseat-http-carries branch December 1, 2026 16:07
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