8000 fix: picker, saved program and automation fixes from QA by aorumbayev · Pull Request #135 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

fix: picker, saved program and automation fixes from QA - #135

Merged
aorumbayev merged 52 commits into
mainfrom
feat/qa-power-user
Nov 12, 2026
Merged

aorumbayev merged 52 commits into
mainfrom
feat/qa-power-user

Conversation

@aorumbayev
@aorumbayev aorumbayev commented Nov 11, 2026 •
Copy link
Copy Markdown
Member

Branch feat/qa-power-user.

Reviewed by a fresh reviewer, fixed, and re-checked (SHIP). Gate: fmt, clippy -D warnings, workspace tests, scripts.

Windows

Terminal tests that type into an untitled cmd thread failed on Windows CI (paste_sends_the_clipboard_to_the_program, a_key_reaches_the_program, paste_into_thread_puts_text_in_the_program, and others in the same suite).

Root cause: the test helper grid_text joined screen rows with a newline and ignored the terminal's wrap flag. On the CI runner the Personal folder path put cmd's prompt at the right edge, so the typed text wrapped and pasted-words was split across two rows. The product screen text already joins wrapped rows (crates/terminal/src/screen.rs), so no product code changed.

Fix: screen_text joins wrapped rows, with a regression test that fails on the old join. The terminal waits print the grid when they time out: wait_for_screen (8 s) and wait_for_output (120 s, a hang guard for loaded runners). Other test fixes in this PR: the edit-menu test submits its pasted text before the echo, and the unix-only helpers are behind cfg(unix). See decision 263.

…stalled agent

kg program list named the newest recent program as the default, which
contradicted its own help and moved with every background run. Now the
default follows the help: the project's program when installed, else the
first installed known agent.
The line that tells a parent a child finished said only the thread id. It
now names the child by its title, kept to letters, digits, spaces and
-_. so a shell parent is still given no typed shell syntax (decision 201
amended).
…path

A thread started from a saved program was titled with the raw program
line, which for a path is a long folder path. It is now named by the
program's short name, the same name the picker shows.
A program that fails at once started a failed thread every interval,
forever. After three failed runs in a row, the next due interval pauses
the automation and starts nothing, and its row says why. Resume starts a
new streak. Decision 243.
The program list put the known agents first, so pinned and recent
programs sat below the eight rows the picker shows. The order now comes
from one place in core, so the window and kg program list agree. Decision
244.
Two Enters in a row sent two renames, so the second one said the saved
program was not found after the first had worked. A save or rename now
waits for its answer, and a submit in the meantime does nothing.
Every saved-program change reloaded the list as if the picker opened
again, so the scroll reset and the selection went back to the default
row. A reload now keeps the list on screen, and the row the person had
selected stays selected when it is still listed.
Opening the new-thread screen again kept the search text from the last
visit, so a stale filter hid the programs. Opening the picker now clears
it.
The project's automation rows gave only a name, an interval and a run
count, so two rows with the same name could not be told apart. Each row
now shows the program and the start of its text, and when it runs next.
The one-time field's placeholder is shorter so it is not cut off.
A saved program was deleted at once from the window or the CLI, with no
way back. Delete now waits for the person to approve it in the app, the
same as an automation's delete. A missing name is refused before the
question. Decision 245.
The default is the project's program or the first installed agent, and a
default title is the program's short name. Tests that assumed the newest
recent program or a truncated path now check those rules.
The QA group D decisions now follow main's last entry. The product Rust
ceiling is raised to the measured count, with its cost recorded in
decision 248.
… CLI

kg automation add took --at, an absolute time in milliseconds, while the
window took minutes from now. The CLI now takes --in <minutes> like the
window, and the core works out the due time. Decision 249.
A typo in a saved prompt meant deleting it and typing it again, and its
star went with it. kg saved-prompt edit and the window's row Edit button
change the text in place. Decision 250.
…ions

Automations sat at the bottom of a long project page. The project menu
gets an Automations item, and the settings op takes an optional section
that scrolls the page to it. Decision 251.
… version

Pin, Rename and Delete sat on every saved row. They now show on the row
under the pointer or on the selected row. OpenCode prints its version as
v2.2.5, and the picker found no number in that, so its row had none.
The list scrollbar sat over the right end of each row, so a version such
as 2.2.5 read 2.2. Rows now keep a right gutter. Saved programs get the
letter mark the built-in agents have.
The default was picked from the list after it was sorted, so a recent
run of an agent that is also the first installed one could take its
place. The default is now decided before the order. The help names the
first installed known agent, and the picker test asserts a default.
A thread started from a saved program was named by the program's short
name, not the name the person saved it under. The core now uses the one
saved name whose line is the run's program, and the thread stays
renamable. Decision 252.
A saved prompt was deleted at once. Delete now waits for the person to
approve it in the app, as a saved program's delete does, and a missing
id is refused before the question. Decision 248 amended.
An automation that paused after failing three runs showed only on its
row. The pause now also writes one line to the activity log. Decision 246.
…hows

The open command list covered the Questions panel, so a delete waited on
a question the person could not see. The list now closes when the delete
is asked. Size ceiling set to the merged count, with its cost in decision
251.
@aorumbayev aorumbayev closed this Nov 11, 2026
@aorumbayev aorumbayev reopened this Nov 11, 2026
@aorumbayev aorumbayev closed this Nov 11, 2026
@aorumbayev aorumbayev reopened this Nov 11, 2026
@aorumbayev
aorumbayev merged commit 3b2eb2a into main Nov 12, 2026
20 checks passed
@aorumbayev
aorumbayev deleted the feat/qa-power-user branch November 12, 2026 04:14
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.

1 participant

0