Skip to content

Conversation

@sordonia
Copy link
Member

@sordonia sordonia commented Dec 13, 2025

some cleanup:

  • step, init, execution_action methods in agent.py
  • llm is required for BaseAgent class
  • removed llm as arg to agent.run()

xingdi-eric-yuan and others added 30 commits December 10, 2025 17:08
1. Fix terminated flag overwrite bug (env.py:440-463)
   - Added early return after catching UnrecoverableTerminalError
   - Prevents terminated=True from being overwritten by calculate_terminated()

2. Add UnrecoverableTerminalError handling in EventHooks.notify() (env.py:112-114)
   - Re-raises UnrecoverableTerminalError so it propagates to the environment
   - Prevents fatal terminal errors from being silently converted to observations

3. Add exc_info=True to logger.error (env.py:439)
   - Logs the full stack trace for debugging production issues

4. Remove stray test lines in test_kubernetes.py
   - Removed 7 lines accidentally left from original test function

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Clear exc_info and exc_text from log records before putting them in
the multiprocessing queue, since traceback objects cannot be pickled.
The local handler processes the record first (with full exception info
for file logging), then we strip unpicklable parts before sending to
the main process.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
xingdi-eric-yuan and others added 8 commits December 12, 2025 11:43
- Add setup_commands support to EnvironmentTool base class
- Setup commands run via on_env_reset() for tools added before reset
- Setup commands run immediately in register() for tools added after reset
- Simplify ListdirTool to just declare setup_commands attribute
- Remove collect_tool_setup_commands() from experiment.py (now handled by event system)
- Add tests for setup_commands functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix llm instantiate weird thing

* add message to submit tool

* update tests

* update configs

* remove llm config file from llm init func ...

* list for type?

* remove required

* mark\ comment

---------

Co-authored-by: Alessandro Sordoni <alsordon@microsoft.com>
Co-authored-by: Marc-Alexandre Côté <marc.cote.19@gmail.com>
@sordonia sordonia requested a review from MarcCote December 13, 2025 02:46
Copy link
Collaborator

@MarcCote MarcCote left a comment

Choose a reason for hiding this comment

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

move back the run in agent.run

Base automatically changed from error_handling to main December 13, 2025 04:26
@sordonia sordonia changed the title step / init step / init / execute_action Dec 13, 2025
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.

4 participants