Skip to content

OMP Ask cards: the card disappears under omp's status row, and Markdown in the question is flattened #1644

Closed

Description

@devswha

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:

⠦ 2s · ⬢ Ask fixture · 🗑 omp-ask-MK1nDy/home/fixture · ◫ 5.7%/131K ⟲

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.

Activity

  1. devswha commented on Oct 24, 2026

    @devswha
    OwnerAuthor

    #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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions