Skip to content

fix(stores): add debug logging to get_persisted_conversation_tools#586

Open
github-actions[bot] wants to merge 1 commit intomainfrom
fix/code-quality/add-debug-logging-agent-store
Open

fix(stores): add debug logging to get_persisted_conversation_tools#586
github-actions[bot] wants to merge 1 commit intomainfrom
fix/code-quality/add-debug-logging-agent-store

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 9, 2026

Summary

Adds debug logging to get_persisted_conversation_tools() in stores/agent_store.py to improve debuggability when resuming conversations fails to load tools.

Changes

  • Add logger import and initialization to agent_store.py
  • Add debug logging when base_state.json is not found
  • Add debug logging when no tools found in persisted conversation
  • Add debug logging on successful tool loading (with count)
  • Add debug logging on errors (JSON decode errors, KeyError, OSError) with error details

Related Issue

Addresses findings from #583

Testing

  • Linting passes (make lint)
  • Tests pass (make test - 1272 tests passed)

This PR was automatically generated by the Code Quality Report workflow.

Addresses item from code quality report.

- Add logger import and initialization to agent_store.py
- Add debug logging when base_state.json is not found
- Add debug logging when no tools found in persisted conversation
- Add debug logging on successful tool loading (with count)
- Add debug logging on errors (JSON/KeyError/OSError) with error details

This improves debuggability when resuming conversations fails to load tools.

Addresses findings from #583

Co-authored-by: openhands <openhands@all-hands.dev>
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.

0 participants