fix(coding): teach agents terminal env state persists
Tell coding agents to activate shell setup once per session instead of re-sourcing it before every command, and pin the existing LocalEnvironment env-snapshot behavior with regression tests.
This commit is contained in:
parent
afe53708ee
commit
ab06ef8ed6
5 changed files with 63 additions and 1 deletions
|
|
@ -11,6 +11,12 @@ import pytest
|
|||
from agent import coding_context as cc
|
||||
|
||||
|
||||
def test_coding_guidance_advertises_persistent_terminal_state():
|
||||
assert "Terminal state persists across calls" in cc.CODING_AGENT_GUIDANCE
|
||||
assert "Activate a virtualenv" in cc.CODING_AGENT_GUIDANCE
|
||||
assert "instead of re-sourcing it before every test command" in cc.CODING_AGENT_GUIDANCE
|
||||
|
||||
|
||||
def _git_init(path):
|
||||
env = {
|
||||
"GIT_AUTHOR_NAME": "t", "GIT_AUTHOR_EMAIL": "t@t",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue