Skip to content

Cache airline flight database between resets#192

Closed
benjibc wants to merge 1 commit intomainfrom
codex/optimize-airlineenvironment.reset-method
Closed

Cache airline flight database between resets#192
benjibc wants to merge 1 commit intomainfrom
codex/optimize-airlineenvironment.reset-method

Conversation

@benjibc
Copy link
Copy Markdown
Contributor

@benjibc benjibc commented Sep 19, 2025

Summary

  • memoize the flight database in AirlineEnvironment.reset and reuse a deep copy on each reset
  • add a regression test that exercises two resets and asserts the database only hits disk once
  • provide lightweight type stubs for optional langfuse/langsmith dependencies so pre-commit type checks pass

Testing

  • pytest tests/pytest/test_mcp_session_autocreate.py::test_airline_environment_reset_uses_cached_db
  • pre-commit run --all-files

https://chatgpt.com/codex/tasks/task_e_68cc8a9c0c6c83339982b08d0550ea71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant