Skip to content

fix: show ai once backend initialization status - #1415

Open
mikemikimike wants to merge 3 commits into
wildcard:mainfrom
mikemikimike:fix/ai-once-initialization-feedback
Open

mikemikimike wants to merge 3 commits into
wildcard:mainfrom
mikemikimike:fix/ai-once-initialization-feedback

Conversation

@mikemikimike

@mikemikimike mikemikimike commented Aug 17, 2026

Copy link
Copy Markdown

Summary

Closes #1408.

caro ai --once now writes an initialization status line to stderr before backend construction, so first-run model initialization is no longer silent. stdout remains reserved for the generated command text.

Implementation

  • Added a stable initialization status message for the one-shot AI path.
  • Emitted it immediately before CliApp::with_overrides(...).await.
  • Added a focused regression test for the status message.

Testing

  • cargo test --bin caro ai_once_initialization_message_is_stable — passed (1 passed, 22 filtered out).
  • The command emitted two existing unreachable_code warnings in src/models/mod.rs and src/platform/mod.rs.
  • git diff --check — passed.

Not run: full cargo test, cargo clippy -- -D warnings, and full formatting check. The full test command previously attempted to update crates.io and stalled in the network environment; offline mode lacked the cached rav1e crate. The repository-wide formatting check reports existing line-ending discrepancies across many files.


Summary by cubic

Make caro ai --once report backend initialization so first runs aren’t silent. It now writes "Initializing backend…" to stderr right before backend construction; stdout remains command text only.

  • Refactors

    • Removed a redundant AI initialization helper to use the same construction path.
  • Migration

    • Update scripts that treat any stderr output as failure to allow this single status line.

Written for commit d9d417a. Summary will update on new commits.

Review in cubic

@mikemikimike
mikemikimike requested a review from wildcard as a code owner August 17, 2026 14:38
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


Thank you for your contribution to caro! 🎉

Before we can merge your pull request, we need you to sign our Contributor License Agreement (CLA).

How to Sign

Please read our CLA here: CLA.md

Once you've read and agree to the terms, simply comment on this PR with:

I have read the CLA Document and I hereby sign the CLA

Alternative: Developer Certificate of Origin (DCO)

If you prefer, you can use DCO instead by signing off your commits with:

git commit -s -m "Your commit message"

See DCO.txt for details.


Note: You only need to sign once. Your signature will cover all future contributions to caro.


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@github-actions

Copy link
Copy Markdown
Contributor

Welcome to caro! 🎉

Thank you for your first pull request, @mikemikimike! We're thrilled to have you as a contributor.

Review Process:

  • Automated checks will run (tests, linting, formatting)
  • A maintainer will review your changes within 48-72 hours
  • We may request changes - this is normal and helps ensure code quality
  • Once approved, your PR will be merged

Helpful Resources:

Tips for a smooth review:

  • Ensure all CI checks pass
  • Respond to feedback promptly
  • Keep changes focused and well-documented

We appreciate your contribution! ❤️

@github-actions github-actions Bot added size/S Small PR (10-50 lines) rust Rust source code changes cli Related to CLI interface and removed size/S Small PR (10-50 lines) labels Aug 17, 2026
@mikemikimike

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

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 1 file

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

Re-trigger cubic

Comment thread src/main.rs
@mikemikimike

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

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 1 file

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

Re-trigger cubic

Comment thread src/main.rs Outdated
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

@mikemikimike is attempting to deploy a commit to the KADOSH DEV Team on Vercel.

A member of the Team first needs to authorize it.

@mikemikimike

Copy link
Copy Markdown
Author

recheck

@wildcard wildcard added the path:scoped caro-merge-review-integrate dispatcher classification label Aug 22, 2026
@github-actions github-actions Bot added the size/XS Extra small PR (< 10 lines) label Aug 25, 2026
@mikemikimike

Copy link
Copy Markdown
Author

I rechecked this PR for issue #1408. The remaining red check is cla-check, and I have already signed the CLA in the PR comments. This is a repository contribution gate, not a code failure from the change. Could a maintainer please refresh or rerun the CLA check and review/approve the PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to CLI interface path:scoped caro-merge-review-integrate dispatcher classification rust Rust source code changes size/XS Extra small PR (< 10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ai: caro ai --once provides zero user feedback during model initialization

2 participants