Skip to content

feat: add export_report tool, expand tilde path, and support ai error retry resilience - #73

Merged
zx06 merged 7 commits into
mainfrom
feat/ai-report-export-and-retry
Aug 31, 2026
Merged

zx06 merged 7 commits into
mainfrom
feat/ai-report-export-and-retry

Conversation

@zx06

@zx06 zx06 commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

  1. AI Tool Resilience & Auto-Retry: Retain strict JSON schema validation, inject error feedback to context when tool arguments parsing fails, and auto-retry up to 2 times without manual intervention.
  2. Path Tilde Expansion: Expand ~ and ~/ in export file paths to the user's home directory.
  3. Export Tools Separation:
    • export_data: dedicated to dumping raw cached datasets, restricted to csv and json.
    • export_report: new tool dedicated to saving comprehensive Markdown analysis reports with human-in-the-loop confirmation.
  4. Docs & Tests: Updated RFC 0013 revision history, docs/ai.md, and added comprehensive unit and e2e tests.

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.32759% with 41 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.78%. Comparing base (22fa6f7) to head (58cf86d).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
internal/export/exporter.go 64.81% 13 Missing and 6 partials ⚠️
internal/tui/model.go 85.45% 12 Missing and 4 partials ⚠️
internal/tui/render.go 68.42% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
+ Coverage   82.21%   82.78%   +0.57%     
==========================================
  Files          62       62              
  Lines        5983     6147     +164     
==========================================
+ Hits         4919     5089     +170     
+ Misses        798      791       -7     
- Partials      266      267       +1     
Flag Coverage Δ
e2e 28.39% <17.67%> (-0.26%) ⬇️
integration 28.39% <17.67%> (-0.26%) ⬇️
unittests 75.41% <80.17%> (+0.69%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread internal/tui/render.go Fixed
@sonarqubecloud

Copy link
Copy Markdown

@zx06
zx06 merged commit 48c806d into main Aug 31, 2026
14 checks passed
@zx06
zx06 deleted the feat/ai-report-export-and-retry branch August 31, 2026 06:07
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.

2 participants