apache / apache/maka

bug(desktop): changing thinking level moves the composer caret to the start

Open
#4,827 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.4k
Forks
502
Avg merge
1d 2h
Merged PRs (30d)
715

Description

## What happened

Changing the model thinking level while text is being edited in the conversation composer moves the caret to the beginning of the draft.

Expected behavior: changing the thinking level should preserve both the draft text and the current caret/selection position, so the user can continue typing from the same location.

## How to reproduce

1. Open a conversation in the Desktop app.
2. Enter some text in the conversation composer.
3. Place the caret somewhere other than the beginning of the draft.
4. Change the model thinking level.
5. Observe that the caret moves to the beginning of the draft instead of remaining at its previous position.

## Environment

- Maka version or commit: `0.2.0` / `7fdc015da`
- OS and version: macOS 15.6 (arm64)
- Surface: Desktop
- Node.js version, if running from source: `v24.19.0`

## Logs, screenshots, or additional context

This interrupts continuous typing and can cause subsequent text to be inserted at the wrong location, especially when editing a longer draft.

Contributor guide

Open the contributing guide

Research direction

Start at the Desktop conversation composer and trace what happens when the model thinking level changes while a draft is focused. Reproduce with text and a caret or selection away from the beginning, then verify that changing the level preserves both the draft and its caret/selection position.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.