Agent fixes - #25
Merged
Merged
Conversation
inercia
force-pushed
the
saurin/agent-fixes
branch
from
October 20, 2025 13:32
87e48a5 to
f3e6134
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR primarily reduces log verbosity by downgrading many Info/Printf statements to Debug, introduces a Warn logging method, and adds interactive conversation capabilities to the agent runtime and CLI.
- Add interactive loop to Agent.Run with per-turn user input and a new CagentRuntime.ContinueConversation method
- Replace numerous Info/Printf logs with Debug, add Logger.Warn, and adjust some messages to better reflect severity
- Update agent usage documentation to reflect interactive usage and configuration
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/server/server.go | Downgrade tool execution log from Info to Debug for less noisy logs. |
| pkg/common/panic.go | Change recovered panic logs to Debug; still logs to stderr. |
| pkg/common/logging.go | Change init logs to Debug and add Warn method on Logger. |
| pkg/common/constraints.go | Downgrade constraint evaluation logs to Debug. |
| pkg/command/runner_sandbox.go | Change operational logs to Debug for sandbox-exec runner. |
| pkg/command/runner_firejail.go | Change operational logs to Debug for firejail runner. |
| pkg/command/runner_exec.go | Change execution logs to Debug and keep behavior; minor messaging tweaks. |
| pkg/command/runner_docker.go | Change Docker execution logs to Debug. |
| pkg/command/runner.go | Downgrade implicit requirements failure log to Debug. |
| pkg/command/command_exec.go | Downgrade tool completion log to Debug. |
| pkg/command/command.go | Downgrade constraint compilation logs to Debug. |
| pkg/agent/model.go | Use Warn when falling back to OpenAI-compatible model class. |
| pkg/agent/cagent_runtime.go | Add ContinueConversation and convert logs to Debug; initialize single-agent runtime. |
| pkg/agent/agent.go | Implement interactive conversation loop, improved exit handling, and better user prompts. |
| docs/usage-agent.md | Update agent usage guide; fix flow and examples, but introduces minor typos. |
| cmd/exe.go | Downgrade "Executing tool" log to Debug. |
| cmd/agent.go | Improve error handling messaging for context cancellations and clarify prompt usage. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
No description provided.