Files
hkuds--openharness/tests/test_ui/test_modes.py
T
tjb-tech 5dd8b952ec Initial release: oh — OpenHarness: Open Agent Harness v0.1.0
A lightweight open-source Python implementation of the Agent Harness architecture.
44x lighter than Claude Code (11K vs 512K lines), 98% core tool coverage.

- 43 tools with Pydantic validation and parallel execution
- Skills system compatible with anthropics/skills (17+ tested)
- Plugin system compatible with claude-code/plugins (12+ tested)
- API retry with exponential backoff
- Multi-level permissions with path rules
- React/Ink TUI with "Oh my Harness!" branding
- 114 unit tests + 6 E2E test suites
- MIT License
2026-04-01 16:32:25 +00:00

26 lines
692 B
Python

"""Tests for UI mode helpers."""
from __future__ import annotations
from openharness.ui.input import InputSession
from openharness.ui.output import OutputRenderer
def test_input_session_updates_prompt_modes():
session = InputSession()
assert session._prompt == "> "
session.set_modes(vim_enabled=True, voice_enabled=False)
assert session._prompt == "[vim]> "
session.set_modes(vim_enabled=True, voice_enabled=True)
assert session._prompt == "[vim][voice]> "
def test_output_renderer_style_can_change():
renderer = OutputRenderer()
assert renderer._style_name == "default"
renderer.set_style("minimal")
assert renderer._style_name == "minimal"