-
Notifications
You must be signed in to change notification settings - Fork 2.4k
fix: adjust strange spacing in agent.rs #5877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes indentation inconsistencies in the reply_internal function's async stream block and improves error message clarity. The strange spacing issue involved code that was indented with excessive spaces (~20 columns) instead of following standard Rust 4-space indentation conventions. Additionally, the PR adds "trying to compact" to an error message for consistency with similar error handlers elsewhere in the codebase.
- Corrects indentation throughout a 350-line async stream block to use standard 4-space indentation
- Improves error message specificity when compaction fails to match the pattern used at line 882
|
I noticed that too, but neither my editor nor cargo fmt would budge I think the real problem is that reply_internal is too nested and then our line length and format start to conflict. but the streaming setup makes it hard to refactor |
this whitespace change makes it I think how it should be and still passes the formatter so we may not get automatic corrections if it gets messed up again, but seems better than current state? |
* main: fix: adjust strange spacing in agent.rs (#5877) Move recipe actions to bottom bar icon and edit goosehints to settings (#5864) [docs] Add “Building a Social Media Agent” Blog Post (#5844) deps: upgrade rmcp to 0.9.1 (#5860) chore: suggest using text/markdown when fetching content (#5854) Revert "fix: do not load active extensions when no extensions in the recipe" (#5871) goose remote access (#5251) docs: add DataHub MCP server extension documentation (#5769)
Signed-off-by: Blair Allan <[email protected]>
…nses-streaming * 'main' of github.com:block/goose: fix: adjust strange spacing in agent.rs (#5877)

Noticed this strange spacing issue in
agent.rswhen working on something else, and corrected it to make the code easier to read