feat: add conversational replies and stable output
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
704eeea5c1
commit
a4ba6e32e5
17 changed files with 363 additions and 59 deletions
|
|
@ -16,6 +16,24 @@ def test_comment_format_escapes_controls_and_prefixes_every_line():
|
|||
assert format_comment("repo-a", "first\nsecond\x1b[31m", "m-1") == (
|
||||
"#repo-a: first\n# second\\x1b[31m [m-1]"
|
||||
)
|
||||
|
||||
|
||||
def test_terminal_frame_scrolls_only_rows_above_the_cursor():
|
||||
assert terminal_frame(
|
||||
"repo-a", "first\nsecond", "m-1", cursor_y=8, pane_height=24
|
||||
) == (
|
||||
"\x1b7\x1b[1;8r\x1b[8;1H"
|
||||
"\n\r#repo-a: first\n\r# second [m-1]"
|
||||
"\x1b[r\x1b8"
|
||||
)
|
||||
|
||||
|
||||
def test_terminal_frame_falls_back_when_stable_region_is_not_safe():
|
||||
expected = "\r\n#repo-a: hello [m-1]\r\n"
|
||||
assert terminal_frame("repo-a", "hello", "m-1", cursor_y=0, pane_height=24) == expected
|
||||
assert terminal_frame(
|
||||
"repo-a", "hello", "m-1", cursor_y=8, pane_height=24, alternate_on=True
|
||||
) == expected
|
||||
assert terminal_frame("repo-a", "hello", "m-1") == (
|
||||
"\r\n#repo-a: hello [m-1]\r\n"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue