desktop: window cannot be dragged from the session header on macOS

Aperta
#62,748 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
desktop

Direzione di ricerca

The issue identifies SessionHeaderDrag as the expected drag region and gives a reproduction on macOS at widths of 900–1056 px. Start by locating that entry point and checking how the session header's drag region is hit-tested, especially around the 24 px gap. Done means dragging the empty header area moves the window while edge resizing still works.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

On macOS the desktop window cannot be moved by dragging. Resizing by dragging the window edges works, but grabbing the session header (the strip with the session title/breadcrumb and the right-side action numbers) does not move the window. It worked before and is broken on 2.2.6.

Expected: dragging the session header moves the window (SessionHeaderDrag, gap must be >= 24 px).

Actual: no movement from the header area; only edge resize works. The window still responds to programmatic moves via AppleScript, so the NSWindow is fine and the drag-region hit-testing fails.

Plugins

No response

OpenCode version

No response

Steps to reproduce
  1. Open the desktop app on macOS (2.2.6).
  2. Make the window 900-1056 px wide.
  3. Drag the empty part of the session header, between the session title and the actions on the right.
  4. The window does not move; dragging the window edges still resizes it.
Screenshot

No response

Operating System

macOS 27.2 (Darwin 27.2.0, arm64, Build 26B123)

Terminal

n/a (desktop app)

Lingua principale
TypeScript
Stelle
225k
Fork
30.4k
Merge medio
4h 16m
PR unite (30g)
528

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anomalyco/opencode

Tutte le issue di anomalyco/opencode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.