myxce/.kiro/specs/scheduler-sim-repl-verbosity
Rongsong Shen 99fa45c41a
feat(scheduler-sim-repl-verbosity): task 6.1 - RED-phase REPL prompt tests
Adds 2 tests in a new test_repl_prompt_context.c covering the dynamic
prompt's plain-before-first-session baseline and its session/timestamp
content in both step and continue modes (Requirement 5.5).

Required genuinely new test infrastructure: libedit's readline() only
writes its prompt text when both stdin and stdout are real ptys, which
no existing REPL test in this codebase's freopen()-from-file harness
can observe. Built a PTY-based capture technique (openpty(), ECHO
disabled via termios) instead - independently reproduced via a
standalone probe and stress-tested 15x with zero flakiness during
review.

New file rather than extending test_repl_execution_control.c (already
at 948 lines, over the 800-line cap), per this spec's established
split precedent.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAWMhfRJFnmmnG8h97yUDd
2026-09-02 15:49:41 +00:00
..
design.md feat(scheduler-sim-repl-verbosity): task 4.2 - retire redundant per-decision echo 2026-09-02 15:10:01 +00:00
requirements.md docs(scheduler-sim-repl-verbosity): expand spec with Requirements 5.5, 6, 7 2026-09-02 08:40:43 +00:00
research.md docs(scheduler-sim-repl-verbosity): add approved spec (requirements/design/tasks) 2026-08-22 02:45:52 +00:00
spec.json docs(scheduler-sim-repl-verbosity): expand spec with Requirements 5.5, 6, 7 2026-09-02 08:40:43 +00:00
tasks.md feat(scheduler-sim-repl-verbosity): task 6.1 - RED-phase REPL prompt tests 2026-09-02 15:49:41 +00:00