Skip to content

fix(workspace-source): count a key-taken refusal on a folder sent by its base in status - #10603

Open
waleedlatif1 wants to merge 1 commit into
stagingfrom
fix/workspace-status-name-taken-finding
Open

waleedlatif1 wants to merge 1 commit into
stagingfrom
fix/workspace-status-name-taken-finding

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • isFolderEvaluationFinding counted a shared-code finding (E_NAME_TAKEN, E_LIMIT_EXCEEDED, E_APPLY_STALE, I_FINDINGS_TRUNCATED) as compile/lint output whenever it carried a file. Since fix(workspace-source): locate every finding, hint nested folder creates, and plan managed rows as stored #10558, kindFinding defaults file to the resource's declaration, so a workspace E_NAME_TAKEN on a workflow folder carries a file too.
  • sim workspaces source status drops folder-evaluation findings for a folder an apply sends by its base, so it hid the key-taken refusal the apply itself refuses with (0 errors in status, refusal on apply).
  • Folder evaluation findings always carry a line (the compiler and pipeline report on a span); workspace findings point at a file and never a line. The filter now requires file and line for shared codes.

Test plan

  • New status test: a key-taken refusal with a file and no line on an unchanged workflow folder is still counted (red before the fix: errors: 0; green after)
  • packages/sim-cli workspace-source-status suite, packages/workspace-code suite
  • biome, type-check of @sim/workspace-code and sim-cli, bun run generate (no diff)

…sent by its base in status counts

isFolderEvaluationFinding treated a shared-code finding pinned to a file as
compile/lint output. Since kindFinding defaults the file to the declaration,
a workspace E_NAME_TAKEN on an unchanged folder carried a file too, so status
dropped the error the apply refuses with. Folder evaluation findings always
carry a line; workspace findings never do, so key on the line.
@vercel

vercel Bot commented Dec 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 1, 2026 9:51pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Low impact] The PR appears safe to merge.

Summary

Fixes sim workspaces source status hiding key-collision errors for unchanged workflows.

  • Workspace status keeps file-only refusals for workflows sent by their base.

Reviews (1) · Last reviewed commit: "fix(workspace-source): keep a key-taken ..." · Reviewed by Greptile

This branch was previously deployed

1 inactive deployment
Preview — 08d70f44 Deployed Dec 1, 2026 by vercel[bot]
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