Skip to content

Sidebar title-only updates pay full branch/directory/PR snapshot cost on every keystroke #20

Description

@arzafran

Tracking upstream cmux manaflow-ai#6546 — applicable to our fork but needs a product/scope decision.

Assessment: Real CPU churn: every updatePanelTitle flush mutates @Published var title (Workspace.swift:7850) → sidebarImmediateObservationPublisher fires (it includes $title at Workspace.swift:6638) → workspaceObservationGeneration &+= 1 in ContentView.swift:13039 → TabItemView.body re-evaluates orderedPanelIds, branchDirectoryLines, and pullRequestRows (ContentView.swift:12684-12720) on every title flush. Split the generation counter into title-only vs detail. Medium refactor touching ContentView.swift and Workspace.swift. No easy unit test.

Upstream: manaflow-ai#6546

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions