Skip to content

fix(cli): comma lists, stale table types hint, and block version note - #10443

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/cli-table-rows-and-types
Nov 26, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/cli-table-rows-and-types

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

CLI papercuts a staging benchmark of the in-product agent hit:

  • Comma lists. tables rows batch-delete --row-ids a,b sent one id "a,b" and deleted nothing. List flags now share one parser rule: repeated, space-separated, comma-separated and JSON-array values all read as entries. Lists whose values hold commas opt out (keepsCommas on sandbox dependencies, e.g. requests>=2,<3; folder paths). The rule that files batch-delete had alone (fileReferences) is now the general rule.
  • tables batch-delete --row-ids. That command archives tables, so it should not accept row ids. The unknown-option guidance now also searches the groups beside the command and matches hidden aliases. It names sim tables rows batch-delete (and tables dispatches create).
  • blocks get table. The server already answers with table_v2, but an agent's jq filter dropped id, and the add that followed used legacy table. A stderr note now says "table" reads as "table_v2"… add it as {"type":"table_v2"}. A filter on stdout cannot drop it.
  • Stale table types. workflows source check is offline, so after tables columns create it reported TS2353 on the new column. When the excess-property error's row type matches a stored table, the error now carries a hint: the column is missing from the types the last get wrote, and sim workflows source status --dir <dir> refreshes them without touching the files.

Type of Change

  • Bug fix

Testing

Each new test fails on the old code:

  • file-references.test.ts: comma and JSON-array --row-ids; a dependency specifier keeps its comma (red with the opt-out removed).
  • embed-isolation.test.ts: tables batch-delete --row-ids guidance.
  • block-version-note.test.ts: the note appears, and is absent when the requested and answered ids match.
  • workflow-source-get.test.ts: a real tsc check after get with a stale manifest.

Local gate run: generate, lint, type-check, check:audits, sim-cli vitest suite, block-registry check.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Nov 26, 2026 9:13pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no new blocking issue was established.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new blocking issue was established.

Summary

The PR gives CLI lists shared comma and JSON-array parsing, while preserving commas in dependencies, folders, file paths, and output selectors.

  • CLI list flags read comma-separated and JSON-array values as entries.
  • Misplaced options point to matching commands one group deeper.
  • Block reads identify the current type to use when adding it.
  • Offline workflow checks point out when saved table types may be stale.

Reviews (2) · Last reviewed commit: "fix(cli): explicit list value policy and..." · Reviewed by Greptile

Comment thread packages/sim-cli/src/runtime/request.ts Resolved
Comment thread packages/sim-cli/src/runtime/request.ts Resolved

@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.

All reported issues were addressed across 23 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread packages/sim-cli/src/runtime/request.ts Resolved
Comment thread packages/sim-cli/src/runtime/request.ts Resolved
Comment thread packages/sim-cli/src/runtime/request.ts Resolved
- Every id list flag reads repeated, space-, comma-separated and JSON-array
  values alike (`--row-ids a,b` deleted nothing); dependency specifiers and
  folder paths keep their commas.
- An unknown option names the commands one group down that take it, by any
  spelling (`tables batch-delete --row-ids` points to `tables rows batch-delete`).
- `blocks get table` notes on stderr that it reads as table_v2, the type to add.
- `workflows source check` hints `source status` to refresh table types when a
  row write names a column the last get's types lack.
- List flags declare how a value reads (`listValues`): ids split on commas,
  `text` (dependencies, output selectors, folder paths) keeps commas, and
  `fileReferences` keeps a `files/` path whole; every list decodes a JSON array.
- `workflows runs get --select-output` reads its values with the same parser
  before resolving block names.
- The stale-table hint names a table only when exactly one stored table is the
  printed row, reads single-quoted keys, and shell-quotes the directory.
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@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 26 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

@waleedlatif1
waleedlatif1 merged commit d7011a5 into staging Nov 26, 2026
87 checks passed

This branch was successfully deployed

1 active deployment
Preview — ac3e9ea0 Deployed Nov 26, 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