Skip to content

Add warning for session defaults - #27

Merged
sahilsunny merged 1 commit into
mainfrom
fix/repl/session-defaults/ignore-for-non-matching-command/SCR-554
Jul 9, 2026
Merged

Add warning for session defaults#27
sahilsunny merged 1 commit into
mainfrom
fix/repl/session-defaults/ignore-for-non-matching-command/SCR-554

Conversation

@sahilsunny

Copy link
Copy Markdown
Collaborator

Session defaults persists until manually removed from the session. So when using commands that are not compatible with the params, the system simply ignores the params. Instead of it, this fix adds a warning that the param was skipped due to non-compatibility. So it will apply when running valid commands and warn when running invalid commands but it just continues to execute after the warning.

Session defaults persists until manually removed from the session. So when using commands that are not compatible with the params, the system simply ignores the params. Instead of it, this fix adds a warning that the param was skipped due to non-compatibility. So it will apply when running valid commands and warn when running invalid commands but it just continues to execute after the warning.
@sahilsunny sahilsunny self-assigned this Jul 9, 2026
@sahilsunny
sahilsunny merged commit c0c3f43 into main Jul 9, 2026
14 checks passed
kostas-jakeliunas-sb added a commit that referenced this pull request Jul 13, 2026
test_session_default_skip_warning_on_screen asserted against the visible
pyte screen, but the warning is a single line printed before the full
`google --help` output, which immediately scrolls it out of the 32-row
viewport. The test only passed when the pump captured an intermediate
frame before the scroll — a race that failed on random OS/Python matrix
cells (seen on main pushes for #27/#28 and on SCR-560 CI runs).

Match on the accumulated ANSI-stripped raw PTY stream instead, which is
scroll-immune: add _strip_ansi/_pump_until_raw and use them in both
session-default tests (the negative test asserts on everything ever
printed, which is also a stronger check than the final screen). Also
makes the positive test return immediately instead of waiting out the
20s pump timeout.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants