Skip to content

OMP Ask: adapt to the newer toggle, next-question and arrow navigation footer #3282

Open

Description

@pnexus-wikii

Problem

The current OMP Ask UI appears to use a newer navigation footer than the one Ovis recognises. In the attached screenshot, the footer is:

↔ toggle · ← next · ↑/↓ move · →/← question · Esc cancel · Alt+H hide

Ovis's OMP reader currently recognises the older footer forms such as:

  • Space/Enter toggle · Enter submit/next · ↑/↓ move · Esc cancel
  • Enter select · ↑/↓ move · Esc cancel
  • Enter submit · ↑/↓ scroll · Esc cancel

The newer Ask screen therefore appears to need another adaptation pass. In particular, the footer has no Tab marker, uses arrow keys for question navigation, and says next rather than Enter submit/next.

Expected

When an OMP Ask screen uses this newer footer, Ovis should:

  • recognise it as an active OMP question;
  • show the current question and its options in the Ovis prompt card;
  • expose the question-to-question navigation;
  • send the correct key sequence for toggle, next question, question navigation, submit and cancel;
  • keep the terminal as the authority and refuse an answer if the screen changed.

The existing terminal view should continue to work as a fallback when the exact OMP screen cannot be proven.

Evidence from the current source

In server/dialogs/omp.ts, the reader currently gates detection through OMP_SINGLE_HINT_RE, OMP_MULTI_HINT_RE, OMP_REVIEW_HINT_RE and OMP_TABS_HINT_RE. The screenshot's footer does not match those old patterns, especially the lack of Space/Enter, Enter submit/next and Tab.

This is separate from #1644, which handled the OMP status row hiding an Ask card and Markdown flattening.

Environment

  • Ovis: latest installed release; current upstream package is v0.5.0.
  • Agent: omp / oh-my-pi.
  • UI language/content: Chinese Ask text with the OMP footer shown above.
  • The screenshot is from the live terminal UI; no private transcript or credentials are included.

Please confirm the OMP version represented by this footer and update the reader/answer mapping for this Ask variant.

Activity

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