Skip to content

fix(ask): scroll ordinary question premises - #15

Closed
snowykr wants to merge 1 commit into
devfrom
fix/ordinary-ask-scroll-title
Closed

fix(ask): scroll ordinary question premises#15
snowykr wants to merge 1 commit into
devfrom
fix/ordinary-ask-scroll-title

Conversation

@snowykr

@snowykr snowykr commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Problem

Fixes #3675. Ordinary ask dialogs did not opt into the existing bounded, scrollable question-title path. A long premise could leave the viewport with no PageUp/PageDown or Ctrl+U/Ctrl+D route to read it.

This is intentionally separate from Yeachan-Heo#3684 native terminal-scrollback work. Keyboard paging moves only the question; the wheel and terminal scrollbar keep their transcript behavior.

Reproduction

  1. Open a normal ask with a premise longer than the available title area, including wrapped text in a narrow terminal.
  2. Before this change, scroll through the selector: early premise rows are unavailable.
  3. With this change, PageUp/PageDown and Ctrl+U/Ctrl+D expose every premise row without increasing the dialog beyond its viewport.

Scope and behavior

  • Enables the already-established scroll-title mode for ordinary ask; no new interaction model or public API is introduced.
  • Uses content-row paging so indicator rows never skip a premise row.
  • Preserves title position through timeout and Other/clarification input transitions, including a countdown repaint on the bottom page.
  • Keeps inline autocomplete ownership of PageUp/PageDown and retains the ordinary Ctrl+G external-editor hint.
  • Computes title/list budgets from wrapped base and inline-input footer heights, including 20-row / 19-column cases; reserves a bounded multiline editor and autocomplete menu at workable sizes, uses a compact literal-@ fallback when the dropdown itself cannot fit, and restores autocomplete after expansion. Budgets recompute in place on terminal resize without losing focus, input, or the semantically visible title premise. One-row option budgets retain a visible focused label, clipped windows retain an option-position marker, and one-row title view keeps the premise line intact rather than consuming it with an indicator.
  • Adds the required packages/coding-agent Unreleased changelog entry.

Direct HookSelector callers that do not request scrollTitleRows retain their previous behavior. No unrelated legacy-selector cleanup is included.

Regression coverage

  • Ordinary ask forwards scroll-title, outline, and wrap-focused settings.
  • Narrow wrapped premises stay within the viewport, all premise content is reachable, rendered rows fit the width, and one-row title views preserve each visited premise line.
  • Inline custom input covers autocomplete PageUp/PageDown, Ctrl+G, wrapped footer budgeting, bounded multiline drafts and an eight-item autocomplete list, the 20-row / 19-column compact literal-@ fallback plus autocomplete restoration after expansion, one-row focused-label visibility, title offset preservation after timeout reset, and 30→20-row terminal resize while preserving an active draft.
  • Timed bottom-page repaint, shrinking a title to one row, and wide↔narrow Markdown reflow retain the visible premise position.

Verification

bun test packages/coding-agent/test/hook-editor.test.ts packages/coding-agent/test/hook-selector-inline-input.test.ts packages/coding-agent/test/hook-selector-overflow.test.ts packages/coding-agent/test/tools/ask.test.ts
# 154 pass, 0 fail

bun --cwd=packages/coding-agent run check
# biome + TypeScript pass

git diff --check
# pass

Focused automated coverage exercises the rendering and input contracts. Physical interactive-terminal dogfooding was not run; exact-head CI remains required.

@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from ede08be to 06b887c Compare July 31, 2026 20:04

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ede08be851

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/tools/ask.ts
Comment thread packages/coding-agent/src/tools/ask.ts
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from 06b887c to 638760a Compare July 31, 2026 20:08

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 638760a6aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/tools/ask.ts
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch 2 times, most recently from 19fc12b to d320c1c Compare July 31, 2026 20:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d320c1c0d2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/tools/ask.ts
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from d320c1c to 75fa22d Compare July 31, 2026 20:24
@snowykr

snowykr commented Jul 31, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch 4 times, most recently from 9e40bcb to a027abd Compare July 31, 2026 20:46

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a027abd441

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/modes/components/hook-selector.ts
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from a027abd to 62b032d Compare July 31, 2026 20:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62b032d578

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/modes/controllers/extension-ui-controller.ts Outdated
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from 62b032d to 77ff151 Compare July 31, 2026 20:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 77ff151375

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/modes/components/hook-selector.ts
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from 77ff151 to 5805894 Compare July 31, 2026 21:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5805894547

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/modes/controllers/extension-ui-controller.ts Outdated
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from 5805894 to bb2a26e Compare July 31, 2026 21:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb2a26ef77

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/tools/ask.ts
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch 3 times, most recently from e2d5983 to 0df947c Compare July 31, 2026 21:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0df947c3f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/modes/controllers/extension-ui-controller.ts Outdated
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from 0df947c to 670df91 Compare July 31, 2026 22:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 670df91c4a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/modes/components/hook-selector.ts
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from 670df91 to a2d2789 Compare July 31, 2026 22:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a2d27892e4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/modes/components/hook-selector.ts
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch 2 times, most recently from 4fc61a2 to e756566 Compare July 31, 2026 23:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7565665db

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/coding-agent/src/modes/components/hook-selector.ts
Comment thread packages/coding-agent/src/modes/components/hook-selector.ts
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from e756566 to b2ba6fe Compare July 31, 2026 23:31
Route ordinary ask selectors through the bounded title viewport already used by Deep Interview so long premises remain recoverable without changing terminal wheel scrollback.

Issue: Yeachan-Heo#3675
Constraint: preserve Deep Interview behavior and terminal wheel handling
Not-tested: tests and formatters intentionally skipped per assignment
Confidence: high
Scope-risk: narrow
Reversibility: revert-commit
@snowykr
snowykr force-pushed the fix/ordinary-ask-scroll-title branch from b2ba6fe to 8fffb6f Compare July 31, 2026 23:34
@snowykr snowykr closed this Aug 1, 2026
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