Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/e2e_cuj/helpers/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ class CodingAgent(StrEnum):

SANDBOX_MCP_SERVICE_NAME = "system.ai.sandbox"
WEB_SEARCH_MCP_SERVICE_NAME = "system.ai.web_search"

BEDROCK_PROVIDER_SERVICE_FIXTURE = (
"ug_e2e.providers.bedrock",
"us.anthropic.claude-haiku-4-5-20251001-v1:0",
)
UC_MODEL_LOCATION_FIXTURE = ("ug_e2e.models", "ug_e2e.models.codex_primary")
FIXTURE_READER_MCP_SERVICE_NAME = "ug_e2e.tools.fixture_reader"
5 changes: 3 additions & 2 deletions tests/e2e_cuj/helpers/tui_request_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def configure_session(self, session: UserSession, args: list[str]) -> None:
if "--workspace" in args:
raise ValueError("configure_session owns --workspace")
session.configure([*args, "--workspace", self.upstream])
self._retarget_session(session.home)
self.retarget_session(session.home)

def prepare_launch(self) -> None:
"""Keep the recorder-scoped managed-config cache fresh for a no-preflight launch."""
Expand All @@ -145,7 +145,8 @@ def prepare_launch(self) -> None:
payload["retrieved_at"] = datetime.now(UTC).isoformat()
path.write_text(json.dumps(payload, indent=2) + "\n")

def _retarget_session(self, home: Path) -> None:
def retarget_session(self, home: Path) -> None:
"""Retarget a session configured outside configure_session, e.g. in a terminal."""
state_path = home / ".ucode" / "state.json"
state = json.loads(state_path.read_text())
upstream = state.get("current_workspace")
Expand Down
Loading
Loading