Files
free-claude-code/tests/cli/test_cli_ownership.py
Ali Khokhar 6bee3104fe Refactor CLI surfaces around launchers and managed Claude (#861)
## Problem

The CLI package preserved a generic adapter layer and managed Codex
parser path that did not match the supported customer workflows.
Messaging runs Claude Code sessions, while Codex is supported through
`fcc-codex` and extensions.

## Changes

| Before | After |
| --- | --- |
| `fcc-claude` and `fcc-codex` shared generic adapter plumbing. |
`fcc-claude` and `fcc-codex` use explicit launcher modules. |
| Messaging depended on a generic CLI session abstraction. | Messaging
depends on managed Claude Code sessions. |
| Codex catalog generation lived as a top-level CLI helper. | Codex
catalog generation lives under the Codex launcher owner. |
| Tests asserted deleted internal adapter shapes. | Tests assert
launcher, managed-Claude, and customer-surface behavior. |
2026-06-18 18:36:37 -07:00

22 lines
707 B
Python

from __future__ import annotations
from pathlib import Path
from cli.managed.session import ManagedClaudeSession
def test_cli_session_owns_typed_runner_config(tmp_path: Path) -> None:
session = ManagedClaudeSession(
workspace_path=str(tmp_path),
api_url="http://127.0.0.1:8082/v1",
allowed_dirs=[str(tmp_path)],
plans_directory=".plans",
claude_bin="claude-test",
)
assert session.config.workspace_path == str(tmp_path)
assert session.config.api_url == "http://127.0.0.1:8082/v1"
assert session.config.allowed_dirs == [str(tmp_path)]
assert session.config.plans_directory == ".plans"
assert session.config.claude_bin == "claude-test"