5dd8b952ec
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
26 lines
692 B
Python
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"
|