Skip to content

improvement(workflow-code): recommend the batched edit loop in the agent primer, help and docs - #10338

Merged
waleedlatif1 merged 2 commits into
stagingfrom
improvement/workflow-code-batched-loop
Nov 23, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
improvement/workflow-code-batched-loop

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Primer, help text, both guides and the `get` `editLoop` field recommend one chained command after writing every file: `check && apply --yes` (and a run). A non-zero exit stops the chain; apply re-compiles and re-checks the base on the server, so `--dry-run` is the review step for people and CI.
  • `editLoop` stays a string array, now holding the one chained command.
  • Primer stays within its 4096-byte budget (workflow 3567 to 3596, workspace 4091 to 4080); the Promote bullet and one sentence moved to the advanced guide, which already holds them.
  • `table.upsertRow` doc and `params` say it replaces the matched row and point to the update builders.
  • The primer, workspace guide and docs state the `// @sim-sdk 1` first line for every declaration file, deployments included.
  • The delete refusal says a resource missing from the directory is a delete and names `--allow-delete`.
  • `coding-agents` docs show the batched loop.

Type of Change

  • Improvement

Testing

  • sim-cli and workflow-sdk suites, apps/sim units, workspace-source integration (real Postgres), goldens, `check:audits`, `check:test-types`, `check:migrations`, docs compatibility, lint, root type-check, block-registry check
  • Red to green: the `editLoop` test, the `upsertRow` note test and the delete-message integration assertion each fail on the old source
  • Known flake: realtime `file-doc-capabilities` afterAll timeout

Checklist

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

…ent primer, help and docs

- primer, help, guides and get editLoop: write every file, then one chained check && apply --yes (&& run) command
- table.upsertRow doc names replace vs merge and the update builders
- primer and guide show the sdk header line for deployments
- delete refusal explains a missing resource is a delete
@vercel

vercel Bot commented Nov 23, 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 Nov 23, 2026 6:06pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues remain.

Summary

The PR recommends writing all files before running a chained check && apply --yes command.

  • Source guides now put file edits before one chained check and apply.
  • Workspace guides name the required TypeScript header and explain missing-file deletes.
  • Builder notes explain that table.upsertRow replaces the matched row.

The change since the previous review only narrows the deployment recovery hint from “file or folder” to “file.” No new actionable issues were found.

Reviews (2) · Last reviewed commit: "fix(workflow-code): keep the deployment ..." · Reviewed by Greptile

@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 15 files

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

Turn on auto-fix | Re-trigger cubic

@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 23, 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 15 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 4c65d95 into staging Nov 23, 2026
87 checks passed
@waleedlatif1
waleedlatif1 deleted the improvement/workflow-code-batched-loop branch November 23, 2026 18:19

This branch was previously deployed

1 inactive deployment
Preview — 0ea7be4c Deployed Nov 23, 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