open-swe/tests
Adam Moussa ead210927d
fix: defensive copy in get_reviewer_agent and get_chat_agent [closes #1584] (#1742)
* fix: defensive copy in get_reviewer_agent and get_chat_agent [closes #1584]

Factory functions were mutating the caller's RunnableConfig in-place via
config['recursion_limit'] = DEFAULT_RECURSION_LIMIT. Add copy.deepcopy(config)
at the top of each factory and switch the recursion_limit write to setdefault
so a caller-supplied ceiling is respected.

* fix: preserve runtime config object identities

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

---------

Co-authored-by: Fleet Agent <fleet-agent@langchain.dev>
Co-authored-by: Johannes du Plessis <51395795+johannes117@users.noreply.github.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
(cherry picked from commit c34e04f44da7ec7638cdafc71e0bb40e77070efd)

Co-authored-by: Jacob Albert <122248719+jacobalbert3@users.noreply.github.com>
2026-07-17 16:22:38 -04:00
..
agent refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
analyzer refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
auth refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
dashboard refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
e2e refactor: split webapp.py into api/ + per-source webhook routes 2026-07-17 14:30:05 -04:00
github refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
middleware refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
models refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
reviewer fix: defensive copy in get_reviewer_agent and get_chat_agent [closes #1584] (#1742) 2026-07-17 16:22:38 -04:00
sandbox refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
slack refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
tools refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
webhooks refactor: move tests into tests/<domain>/ layout 2026-07-17 14:42:45 -04:00
conftest.py refactor: split webapp.py into api/ + per-source webhook routes 2026-07-17 14:30:05 -04:00