Skip to content

bug(gui): TitleBar handleDeviceChange captures deviceId but never uses it #514

@amiable-dev

Description

@amiable-dev

Description

In TitleBar.svelte, the handleDeviceChange function captures deviceId from the dropdown event but never uses it to update application state before navigating to the device settings view.

function handleDeviceChange(e) {
    const deviceId = e.target.value;
    // Device dropdown navigates to device settings for that device
    workspaceView.set(WORKSPACE_VIEWS.DEVICE_SETTINGS);
}

The selected deviceId is discarded — the function only navigates to the device settings view without telling it which device was selected.

Expected Behavior

Selecting a device from the TitleBar dropdown should navigate to device settings for that specific device.

Actual Behavior

The dropdown navigates to the device settings view but the selected device ID is ignored.

Location

conductor-gui/ui/src/lib/components/TitleBar.svelte:16-20

Priority

P3 — Functional bug but low impact since device settings may infer the device from other state.


Flagged by LLM Council review during #512.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingguigui-v2GUI v2 rebuild issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions