You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OMP Ask cards: the card disappears under omp's status row, and Markdown in the question is flattened #1644
Found while reviewing #1528 (thanks @CharleoYang). Both problems reproduce on main (78084ec) against real omp 18.12.6 captures.
1. The card disappears while the question still waits
promptTailIsActive (server/prompt.ts) treats any line below the Ask panel's bottom border as later output. omp prints its status row right there, for example:
All 8 captured screens with such a row give no card; with that one row removed, all 8 parse. What a fix must recognise, from omp 18.12.6's status line (pi-tui formatBillingSummary): $N.NN ↑/↓ appears only for time-priced models, subscriptions show S0.12 or (sub), zero cost shows nothing, and a temp folder shows as 🗑 …. #1528's pattern needed a $N.NN ↑|↓ tail and a ~/, / or X:\ path, so it matched none of the real rows. Later agent output must still settle the card, so a status row alone should not count as proof that the question is live (the panel border right above it can).
2. Markdown in the question and options is flattened
The live card is rebuilt from terminal text: emphasis, links, tables, code and math are lost, and long questions and previews are clipped. #1528 matched the live menu to the single unfinished ask call of the current turn and took its raw text. On the captures it enriched 5 of 15 question screens. It gave up whenever an option label holds Markdown (raw Use `pnpm` against the screen's Use pnpm) and for fenced questions that are not clipped. A fix should compare after reducing the Markdown to the plain text omp draws, and still fail closed on a real mismatch (another turn, a settled call, different options or order).
Adds optional prompt fields to the HTTP contract and changes remote PC bundle code, so it needs a real review and a REMOTE_BUNDLE_VERSION bump when it lands.
#1812 fixes part 1, the card disappearing under omp's status row. It was reproduced on real omp 18.12.6 screens (composer.shape: pi, isolated herdr test session, fake model provider) that are now fixtures.
Left for follow-up work:
Part 2, flattened Markdown in the question and options. Not in fix(prompt): keep an omp Ask card above omp's status row #1812. It needs optional prompt fields in the HTTP contract (shared/protocol.ts), changes to the remote PC bundle, a REMOTE_BUNDLE_VERSION bump and a real review.
A clipped multi-select hint. On omp 18.12.6 at 60 columns, the multi-select question's hint is clipped to ⎋ cance…, which OMP_MULTI_HINT_RE does not accept, so that screen still gives no card with or without the status row.
Activity
devswha commentedon Oct 24, 2026
#1812 fixes part 1, the card disappearing under omp's status row. It was reproduced on real omp 18.12.6 screens (
composer.shape: pi, isolated herdr test session, fake model provider) that are now fixtures.Left for follow-up work:
shared/protocol.ts), changes to the remote PC bundle, aREMOTE_BUNDLE_VERSIONbump and a real review.⎋ cance…, whichOMP_MULTI_HINT_REdoes not accept, so that screen still gives no card with or without the status row.fix(prompt): keep an omp Ask card above omp's status row (#1812)
fix(prompt): read an omp multi-select Ask whose hint a narrow pane cl…
fix(prompt): show an omp Ask card in the agent's own Markdown (#1644)
fix(prompt): show an omp Ask card in the agent's own Markdown (#1644)
fix(prompt): show an omp Ask card in the agent's own Markdown (devswh…
fix(chat): read the pane again right before every key, and send it on…