feat: add reliable trigger and worker message blocks
Some checks failed
tamq-ci / test (push) Failing after 6s
Some checks failed
tamq-ci / test (push) Failing after 6s
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
This commit is contained in:
parent
72f22a13f7
commit
17b6bd7ae7
25 changed files with 588 additions and 67 deletions
|
|
@ -104,6 +104,24 @@ def test_output_observer_preserves_full_screen_program_gutters():
|
|||
assert lines == ["› To:target: operator echo", "• tO:target: worker reply"]
|
||||
|
||||
|
||||
def test_output_observer_emits_one_empty_line_for_crlf_terminator():
|
||||
lines = []
|
||||
observer = TerminalOutputObserver(lines.append)
|
||||
observer.feed(b"To:target: first\r\nfollowup\r\n\r\nordinary\r\n")
|
||||
assert lines == ["To:target: first", "followup", "", "ordinary"]
|
||||
|
||||
|
||||
def test_output_observer_infers_empty_full_screen_row_from_cursor_gap():
|
||||
lines = []
|
||||
observer = TerminalOutputObserver(lines.append)
|
||||
observer.feed(
|
||||
b"\x1b[4;1H\xe2\x80\xa2 To:target: first"
|
||||
b"\x1b[5;1H followup"
|
||||
b"\x1b[7;1Hprompt"
|
||||
)
|
||||
assert lines == ["• To:target: first", " followup", ""]
|
||||
|
||||
|
||||
def test_copy_winsize_preserves_rows_columns_and_pixels():
|
||||
source_master, source_slave = pty.openpty()
|
||||
target_master, target_slave = pty.openpty()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue