Conversation
Owner
emesal
commented
Feb 19, 2026
- refactor(sink): replace Diagnostic with typed ResponseEvent variants
- refactor(send): emit typed ResponseEvent variants, remove verbose gating
- refactor(cli/sink): handle typed ResponseEvent variants with local filtering
- refactor(json/sink): emit all typed ResponseEvent variants as structured JSONL
- refactor(core): remove verbose from PromptOptions
- refactor(config): remove verbose, hide_tool_calls, show_thinking from core; add CommandEvent
- feat(cli/config): add verbose, hide_tool_calls, show_thinking to CliConfig; wire CLI flags
- refactor(json): remove verbose load-time handling, emit CommandEvent
- refactor(output): remove diagnostic/diagnostic_always from OutputSink
- refactor(load): replace LoadOptions.verbose with typed load events via OutputSink
- docs: update configuration.md and cli-reference.md for presentation layer refactor
- chore: fmt cleanup and add plan docs
… core; add CommandEvent Presentation fields no longer live in chibi-core config. Core emits all events unconditionally; clients filter. Adds CommandEvent enum and emit_event to OutputSink trait.
…onfig; wire CLI flags Presentation fields now live in CliConfig / CLI ResolvedConfig. ChibiInput gains verbose_flag, hide_tool_calls_flag, show_thinking_flag. CLI tests updated to assert on input flags rather than config_overrides.
Replaces diagnostic() calls with emit_event(CommandEvent::ContextLoaded).
All callers migrated to direct eprintln! or emit_event. The two trait methods and their impls in OutputHandler and JsonOutputSink are gone.
…a OutputSink Adds McpToolsLoaded, McpBridgeUnavailable, LoadSummary CommandEvent variants. load_with_options now takes &dyn OutputSink and emits these unconditionally; clients filter based on verbose mode. LoadOptions.verbose removed. Resolves #166.
…ayer refactor verbose, hide_tool_calls, show_thinking moved from core config.toml to cli.toml. JSON mode overrides list updated to reflect that presentation fields are CLI-only.
cargo fmt reformatting across modified files. Adds the plan and handoff documents from this refactor session.
Owner
Author
Code reviewFound 4 issues:
chibi/crates/chibi-core/src/tools/plugins.rs Lines 240 to 243 in c694fd0
chibi/crates/chibi-cli/src/config.rs Lines 407 to 411 in c694fd0
chibi/crates/chibi-core/src/chibi.rs Lines 110 to 151 in c694fd0
chibi/crates/chibi-cli/src/output.rs Lines 33 to 106 in c694fd0 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.