Skip to content

Addressing PR comments#17

Closed
Codex wants to merge 5 commits intomainfrom
codex/sub-pr-13
Closed

Addressing PR comments#17
Codex wants to merge 5 commits intomainfrom
codex/sub-pr-13

Conversation

@Codex
Copy link
Contributor

@Codex Codex AI commented Feb 21, 2026

Greptile Summary

This PR addresses PR comments and linting issues from the custom caret implementation. The changes include fixing the Biome configuration typo (assistassists), resolving variable shadowing in listIsTight, organizing imports per Biome rules, and adding keyboard accessibility to the command bar overlay.

Key changes:

  • Fixed biome.json typo and simplified config structure
  • Resolved variable shadowing issue in markdown.ts by using separate index variable
  • Organized imports across multiple files (node:path, import ordering)
  • Added keyboard event handler to CommandBar overlay for accessibility
  • Minor formatting improvements (trailing commas, line breaks, array formatting)

One issue found: the CommandBar keyboard handler intercepts Enter/Space keys that should be handled by the command palette items for selection.

Confidence Score: 4/5

  • Safe to merge after fixing the CommandBar keyboard handling issue
  • Mostly formatting and linting fixes with one logical issue in CommandBar that prevents proper command selection via keyboard
  • apps/desktop/src/command/CommandBar.tsx needs the keyboard handler fixed to only handle Escape, not Enter/Space

Important Files Changed

Filename Overview
apps/desktop/src/editor/plugins/caret.ts New custom caret plugin implementation with proper instance tracking and error handling
apps/desktop/src/hooks/useAppearance.ts Added cursor style event listener for menu integration
apps/desktop/src/editor/markdown.ts Fixed variable shadowing in listIsTight function, organized imports
apps/desktop/src/command/CommandBar.tsx Added keyboard event handler to overlay for accessibility
biome.json Fixed typo: 'assist' to 'assists', simplified config

Last reviewed commit: 2eb67be

usamaasfar and others added 3 commits February 21, 2026 23:31
- Custom ProseMirror plugin renders a virtual caret (hides native)
- Smooth 60ms CSS transition between positions while typing
- Blink pauses while typing, resumes 0.5s after last keystroke
- Line and underline styles switchable via Appearance > Cursor menu
- Style persisted to localStorage and restored on startup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
)

* Initial plan

* Fix module-level state and silent failure in caret plugin

Co-authored-by: usamaasfar <42825498+usamaasfar@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: usamaasfar <42825498+usamaasfar@users.noreply.github.com>
@Codex Codex AI changed the title [WIP] Add smooth animated caret with line and underline styles [desktop] Hardening custom caret plugin for multi-editor safety Feb 21, 2026
@Codex Codex AI requested a review from usamaasfar February 21, 2026 18:23
@usamaasfar
Copy link
Owner

@codex[agent] can you fix the issue?

@Codex
Copy link
Contributor Author

Codex AI commented Feb 21, 2026

@codex[agent] can you fix the issue?

Fixed the Biome config and lint blockers; checks now pass. Commit 09f0a01.

@Codex Codex AI changed the title [desktop] Hardening custom caret plugin for multi-editor safety Addressing PR comments Feb 21, 2026
Base automatically changed from smooth-caret to main February 21, 2026 18:30
@usamaasfar usamaasfar marked this pull request as ready for review February 21, 2026 18:31
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

16 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

className="cmdk-overlay"
onClick={onClose}
onKeyDown={(e) => {
if (e.key === "Escape" || e.key === "Enter" || e.key === " ") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Enter and Space handlers prevent command selection. Users navigating with arrows can't select items with Enter because overlay closes first. Only Escape should close the overlay on keydown.

@usamaasfar usamaasfar closed this Feb 21, 2026
@usamaasfar usamaasfar deleted the codex/sub-pr-13 branch February 21, 2026 18:35
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.

3 participants