[FEATURE]: Keep the side panel width stable across panel tabs

未关闭
#66,972 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
desktop

调研方向

The payload names no source files, so start from where the side region reads Panel.width and stores a dragged width per panel, then read #60389 for why the width changes on tab switch. Decide between the proposed setting and a per-panel width: "inherit" opt-out, since the thread has not settled it. Done means a shared width holds across side tabs when the setting is on, and default behaviour is unchanged.

由索引模型根据 Issue 内容生成。

描述

area/desktop platform/windows type/feature version/v2
Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

In Desktop, the side region can resize whenever the selected side-panel tab changes. A panel may declare its own width (for example Panel.width: "narrow"), and the host remembers a dragged width per panel. Switching between tabs with different widths resizes the whole side region, which reflows the active panel and the conversation, and makes tab switching feel unstable.

This is intentional from #60389, but there is no way to opt out. A related request, #66661, asks for a configurable default and persistent width, but not specifically for one stable width across panel tabs.

Proposal: add a setting such as "Keep side panel width across tabs" (or "Remember side panel width per tab", defaulting to today's behavior). When enabled, one dragged width is shared by every side tab; a panel's declared width acts only as a default or minimum. A per-panel opt-out such as width: "inherit" would also work.

This would keep the conversation and panel from jumping while inspecting different tabs, and give users control over whether panels may resize the layout. No server change is needed.

Environment: OpenCode Desktop 2.4.1 and recent dev builds, Windows 10. Example panels: GUI plugin side tabs that declare a narrow width.

主要语言
TypeScript
星标
230k
派生
31.3k
平均合并
5 小时 32 分钟
30 天内合并 PR
453

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。