Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@10Ala10
Copy link
Contributor

@10Ala10 10Ala10 commented Oct 16, 2025

Summary

Fix AttributeError that occurs when calling acontinue_run() or acontinue_run_stream() methods with only run_id parameter and run_response=None. The logging statements were trying to access run_response.run_id when run_response could be None.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Improvement
  • Model update
  • Other:

Checklist

  • Code complies with style guidelines
  • Ran format/validation scripts (./scripts/format.sh and ./scripts/validate.sh)
  • Self-review completed
  • Documentation updated (comments, docstrings)
  • Examples and guides: Relevant cookbook examples have been included or updated (if applicable)
  • Tested in clean environment
  • Tests added/updated (if applicable)

Additional Notes

The fix changes the log_debug calls in both _acontinue_run and _acontinue_run_stream methods from:

log_debug(f"Agent Run Continue: {run_response.run_id}", center=True)

To:

log_debug(f"Agent Run Continue: {run_response.run_id if run_response else run_id}", center=True)

This prevents the AttributeError when run_response is None and only run_id is provided.

- Fix log_debug calls in _acontinue_run and _acontinue_run_stream methods
- Use conditional expression to handle when run_response is None
- Prevent AttributeError when accessing run_response.run_id
@10Ala10 10Ala10 requested a review from a team as a code owner October 16, 2025 21:15
@10Ala10 10Ala10 changed the title Fix AttributeError when continuing agent run with run_id only Fix: fix AttributeError when continuing agent run with run_id only Oct 16, 2025
Copy link
Contributor

@manuhortet manuhortet left a comment

Choose a reason for hiding this comment

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

Thanks for picking this @10Ala10! Good catch.

We will release it asap as part of our next release.

@manuhortet manuhortet merged commit 7282e27 into agno-agi:main Oct 17, 2025
5 checks passed
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