Skip to content

Fix App Console history shortcuts#205

Merged
jlewi merged 3 commits into
mainfrom
codex/issue-200-monaco-shift-up
May 13, 2026
Merged

Fix App Console history shortcuts#205
jlewi merged 3 commits into
mainfrom
codex/issue-200-monaco-shift-up

Conversation

@jlewi
Copy link
Copy Markdown
Collaborator

@jlewi jlewi commented May 13, 2026

Fix #200

Signed-off-by: Jeremy lewi <jeremy@lewi.us>
Copy link
Copy Markdown

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

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: de51ff5212

ℹ️ 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 on lines +251 to +252
const historyIndex = historyBrowseRef.current.index;
const canBrowsePrevious =
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Track history index in state for button enablement

canBrowsePrevious/canBrowseNext are derived from historyBrowseRef.current.index, but browseHistory() mutates that ref without always triggering a re-render (it returns early when nextSource === draft.source). In that case, the Prev/Next buttons keep stale disabled states, so users can get controls that do not reflect actual navigation state (for example when the draft text already equals the most recent history entry). Store the browse index in React state (or force a render on ref changes) so button enablement stays in sync.

Useful? React with 👍 / 👎.

jlewi added 2 commits May 13, 2026 08:14
Signed-off-by: Jeremy lewi <jeremy@lewi.us>
Signed-off-by: Jeremy lewi <jeremy@lewi.us>
@jlewi jlewi merged commit 1dde9c9 into main May 13, 2026
3 checks passed
@jlewi jlewi deleted the codex/issue-200-monaco-shift-up branch May 13, 2026 21:41
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.

Bug: "shift-up-arrow" inside an editor does extend selection up

1 participant