Skip to content

Improve Solution Draft Log comment formatting#1449

Merged
konard merged 5 commits intomainfrom
issue-1448-b26828247b65
Mar 20, 2026
Merged

Improve Solution Draft Log comment formatting#1449
konard merged 5 commits intomainfrom
issue-1448-b26828247b65

Conversation

@konard
Copy link
Copy Markdown
Contributor

@konard konard commented Mar 19, 2026

Summary

  • Use ### headings for Cost estimation, Models used, and Log file sections in GitHub PR/issue comments for clear visual separation
  • Simplify model display to compact **Name** (id) format instead of verbose (ID: id, Provider, cutoff: date)
  • Use "Model" label for single model, "Main model" + "Additional models" for multiple models
  • Add proper whitespace between all sections and ### 📎 heading for log file links
  • Update all 8 comment template variants (success/failure/errors/usage-limit × inline/uploaded)

Before

Before formatting

After (expected rendering)

## 🤖 Solution Draft Log
This log file contains the complete execution trace of the AI solution draft process.

### 💰 **Cost estimation:**
- Public pricing estimate: $2.124108
- Calculated by Anthropic: $1.111673 USD
- Difference: $-1.012435 (-47.66%)

### 🤖 **Models used:**
- Tool: Claude
- Requested: `opus`
- **Model: Claude Opus 4.6** (`claude-opus-4-6`)

### 📎 **Log file uploaded as Gist** (690KB)
- [View complete solution draft log](https://...)

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

Test plan

  • node tests/test-build-cost-info-string.mjs — 42/42 pass
  • node tests/model-info.test.mjs — 55/55 pass
  • Verify rendered output on a real PR comment

Fixes #1448

🤖 Generated with Claude Code

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: #1448
@konard konard self-assigned this Mar 19, 2026
Use ### headings for Cost estimation, Models used, and Log file sections
in GitHub comments. Simplify model display to compact format. Use "Model"
label for single model and "Main model" + "Additional models" for multiple.
Add proper whitespace between all sections.

Fixes #1448

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@konard konard changed the title [WIP] Better Solution Draft Log comments output Improve Solution Draft Log comment formatting Mar 19, 2026
@konard konard marked this pull request as ready for review March 19, 2026 19:51
@konard
Copy link
Copy Markdown
Contributor Author

konard commented Mar 19, 2026

🤖 Solution Draft Log

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

💰 Cost estimation:

  • Public pricing estimate: $4.954536
  • Calculated by Anthropic: $2.905591 USD
  • Difference: $-2.048945 (-41.35%)

🤖 Models used:

  • Tool: Claude
  • Requested: opus
  • Main model: Claude Opus 4.6 (ID: claude-opus-4-6, Anthropic, cutoff: 2025-05)
    📎 Log file uploaded as Gist (2216KB)
    🔗 View complete solution draft log

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

@konard
Copy link
Copy Markdown
Contributor Author

konard commented Mar 19, 2026

🔄 Auto-restart triggered (attempt 1)

Reason: CI failures detected

Starting new session to address the issues.


Auto-restart-until-mergeable mode is active. Will continue until PR becomes mergeable.

konard and others added 2 commits March 19, 2026 19:55
- Add changeset file for issue #1448 (patch)
- Fix Prettier formatting in docs/case-studies/issue-1448/analysis.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove unnecessary comment to bring github.lib.mjs to exactly 1500 lines
(CI enforces a 1500 line limit on .mjs files).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@konard
Copy link
Copy Markdown
Contributor Author

konard commented Mar 19, 2026

🔄 Auto-restart-until-mergeable Log (iteration 1)

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

💰 Cost estimation:

  • Public pricing estimate: $1.924346
  • Calculated by Anthropic: $1.199626 USD
  • Difference: $-0.724720 (-37.66%)

🤖 Models used:

  • Tool: Claude
  • Requested: opus
  • Main model: Claude Opus 4.6 (ID: claude-opus-4-6, Anthropic, cutoff: 2025-05)
    📎 Log file uploaded as Gist (2950KB)
    🔗 View complete solution draft log

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

@konard
Copy link
Copy Markdown
Contributor Author

konard commented Mar 19, 2026

✅ Ready to merge

This pull request is now ready to be merged:

  • All CI checks have passed
  • No merge conflicts
  • No pending changes

Monitored by hive-mind with --auto-restart-until-mergeable flag

@konard konard merged commit 87d0a7c into main Mar 20, 2026
21 checks passed
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 Solution Draft Log comments output

1 participant