Skip to content

feat(inspector): display reasoning_content with toggle and hot-reload#815

Open
AlexanderDefuria wants to merge 1 commit intoSWE-agent:mainfrom
AlexanderDefuria:main
Open

feat(inspector): display reasoning_content with toggle and hot-reload#815
AlexanderDefuria wants to merge 1 commit intoSWE-agent:mainfrom
AlexanderDefuria:main

Conversation

@AlexanderDefuria
Copy link
Copy Markdown

  1. Show reasoning_content field from assistant messages in the trajectory inspector. The field is already stored in trajectory JSON files but was ignored. Visual reasoning blocks render below the main assistant content with an italic header and darker background. Can be a useful debugging tool to check reasoning output.

  2. Additionally, a hot reload button enables user's to “watch” the trajectory output during debugging. This hot-reload updates the file without closing the tool.

New hotkeys:

Key Action
r Toggle reasoning blocks on/off
R Reload trajectory file from disk (preserves current step; clamps if file shrank)

New CLI flag: --reasoning / --no-reasoning (defaults to reasoning)

Files changed

  • src/minisweagent/run/utilities/inspector.py
  • tests/run/test_inspector.py

Note: If there are any changes to the approach or the tests, I'm happy to iterate! I found this functionality very helpful when debugging a project of mine over the last few weeks. :)

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.

1 participant