checkout.js and adds a regression test in checkout.test.js.
Review the changes
Session changes lists the changed files and their diffs. In the checkout example, the review should cover both the quantity calculation and a regression test with more than one unit. Check the command result in the timeline as well: a test in the diff shows what was added; the command output shows whether it ran successfully. If the regression test is missing, add a comment to the relevant diff line and choose Add N comments to include it in your next message. In a local session, the agent receives the file, line, and quoted snippet with your feedback, so you can ask for a specific revision. Have it add the test and run the checks, then review the updated diff.Review a fix in context
For a bug fix, review three pieces of evidence together:
For example, a test that still uses a quantity of one would not catch the checkout bug. Ask for a case with three units and check that the expected total is
36. If the timeline shows a missing dependency instead of test results, the fix has not been verified yet.
Request a revision
Leave feedback on the affected line, then send it with the review comments:This test only covers one item. Add a case with quantity three, confirm it fails with the old calculation, and run the suite after the fix. Keep the change limited to checkout.js and checkout.test.js.Wait for the revised run to finish and reopen the diff. Review the current file contents and the new test result, since an earlier passing run does not cover edits made afterward.
Commit and push
Once the running task has finished and you are satisfied with the changes:- Choose Commit changes beside the composer.
- Select the files and review their diffs.
- Review or edit the generated commit message.
- Choose Commit to save locally, or Commit and push to push to the same branch on
origin.
Select a file to inspect its diff and write a commit message before committing.
Choose the file version
Suppose you staged the quantity fix, then added temporary debugging output to the same file. Staged changes commits the staged fix. Working tree changes includes the later debugging edit as well. The dialog selects whole files and versions, so prepare partial staging in Git first if you only want particular changes from a file. If a file changes while the dialog is open, choose Refresh changes and inspect the selection again. Resolve merge conflicts and any unfinished Git operation before committing. Confirm the branch before Commit and push; the push sends the selected commit to that branch onorigin.