Skip to content

Better wording for auto-restart comment#1192

Open
konard wants to merge 4 commits intomainfrom
issue-1187-d1f8921af39c
Open

Better wording for auto-restart comment#1192
konard wants to merge 4 commits intomainfrom
issue-1187-d1f8921af39c

Conversation

@konard
Copy link
Contributor

@konard konard commented Jan 29, 2026

Summary

Updated the auto-restart comment wording to clarify that uncommitted changes can be either committed or discarded.

Changes Made

Modified Files

  1. src/solve.watch.lib.mjs (line 276)

    • Changed: "Starting new session to review and commit them"
    • To: "Starting new session to review and commit or discard them"
  2. experiments/test-auto-restart-comment-format.mjs (line 17)

    • Updated test script to reflect the new wording

Verification

  • System prompts in both solve.watch.lib.mjs (lines 309-311) and solve.preparation.lib.mjs (lines 132-134) already instruct the AI to either COMMIT or REVERT (discard) uncommitted changes
  • The user-facing comment now matches the system prompt instructions

Testing

Ran the experiment script to verify the new wording:

node experiments/test-auto-restart-comment-format.mjs

All tests pass successfully with the new wording displayed correctly.

Example Output

The auto-restart comment now reads:

## 🔄 Auto-restart 1/3

Detected uncommitted changes from previous run. Starting new session to review and commit or discard them.

**Uncommitted files:**
...

Fixes #1187

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #1187
@konard konard self-assigned this Jan 29, 2026
Changed "Starting new session to review and commit them" to
"Starting new session to review and commit or discard them"
in the auto-restart comment that gets posted to pull requests.

This makes the wording consistent with the system prompts that
already instruct the AI to either COMMIT or REVERT (discard)
uncommitted changes.

Also updated the test script to reflect the new wording.

Fixes #1187

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@konard konard changed the title [WIP] Better wording for auto-restart comment Better wording for auto-restart comment Jan 29, 2026
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@konard konard marked this pull request as ready for review January 29, 2026 00:35
@konard
Copy link
Contributor Author

konard commented Jan 29, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $1.490550 USD
  • Calculated by Anthropic: $1.071028 USD
  • Difference: $-0.419522 (-28.15%)
    📎 Log file uploaded as Gist (398KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

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.

Better wording for auto-restart comment

1 participant