Repository navigation
feat(files): integrate Project files with the browser and Mothership - #8781
mzxchandra wants to merge 28 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
@cubic-dev-ai review this PR |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 209 files
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Turn on auto-fix | Re-trigger cubic
|
|
@cubic-dev-ai review this PR |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 209 files
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
1 issue found across 209 files
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Turn on auto-fix | Re-trigger cubic
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/mothership-view.tsx">
<violation number="1" location="apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/mothership-view.tsx:142">
P2: This lookup runs for persisted Project tabs even when `projects` or `project-files` is disabled, bypassing the separate release gates. Gate Project lookups and rendering on both flags.
(Based on your team's feedback about gating Project lookups.)</violation>
</file>
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
1 issue found across 227 files
Confidence score: 5/5
- The Redis-enabled scenario in
project-file-write-transport.integration.tsleaves staleupload_sessionrows because deleting the fixture file and user does not cascade. Delete the session during teardown.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/lib/mothership/agent-cli/project-file-write-transport.integration.ts">
<violation number="1" location="apps/sim/lib/mothership/agent-cli/project-file-write-transport.integration.ts:691">
P3: The Redis-enabled scenario leaves its completed `upload_session` behind while deleting the fixture file and user; these columns have no cascading foreign keys, so every run leaves stale test data. Delete sessions for `f.userId` during teardown.</violation>
</file>
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
|
Merged the updated backend parent, preserving the Project file fixes. The incoming change is confined to 12 table files; there is no database schema or migration delta. Validation: nine affected table tests, two Project-tag state regressions (with independent failing guard-removal controls), and the Redis-enabled callback integration test on a fresh database passed. Worker contract sync and the complete 344-command CLI inventory pass against this combined tree. Lint, 58 audits, generators, docs manifest and actual-base block registry checks pass. For the upload-transport review, the installed embedded Project CLI successfully transferred exact bytes to real same-origin and different-origin HTTP receivers while its identity transport accepted only Project control requests. Byte transfer uses global fetch and does not pass through the Project control scope check. Fixture upload-session cleanup was fixed. The earlier live archive browser proof remains valid for the unchanged Project file implementation. Physical provider-backed acceptance remains open pending authorized credentials, a compatible template/snapshot and a sandbox-reachable callback. Fresh exact-head CI and both reviews are requested; this PR remains draft. |
|
@cubic-dev-ai review this PR |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 227 files
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 229 files
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
View guided diff | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 229 files
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
|
Validation for 10f89e0:
These are tests of the actual Sim callback with PostgreSQL and Redis. Physical sandbox-provider/worker end-to-end acceptance remains unverified; it requires authorized provider configuration and a reachable callback. The separate earlier live-browser archive/invalidation result remains valid for that unchanged path. |
|
@cubic-dev-ai review this PR |
@mzxchandra I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 231 files
Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
View guided diff | Re-trigger cubic
Summary
Stacked on #8610, above #8609 and #8590, with #8762 as the lifecycle prerequisite. Pairs with Mothership #594. Keep the feature disabled until compatible app/realtime/background consumers and the companion worker are deployed. No migrations are added here.
Type of Change
Testing
The worker currently supports full-content replacement for Project files; targeted
files editremains unsupported. Local model verification exercised the supported operation. Remote Python/XLSX generation is not claimed as tested here.Checklist