Skip to content

fix: show Tasks view container in Cursor when not authenticated#839

Merged
EhabY merged 2 commits intomainfrom
fix/cursor-tasks-view-container
Mar 16, 2026
Merged

fix: show Tasks view container in Cursor when not authenticated#839
EhabY merged 2 commits intomainfrom
fix/cursor-tasks-view-container

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Mar 13, 2026

Summary

  • Cursor has a bug where view containers with all views hidden via when clauses never re-appear after the context changes (forum thread)
  • Add a placeholder login tree view (coder.tasksLogin) so the coderTasks container always has at least one visible view, with a viewsWelcome login button when unauthenticated
  • VS Code is unaffected; the coder (Remote) container was already fine because myWorkspaces has no when clause

Fixes #838

Test plan

  • In Cursor: verify the Tasks view container appears in the sidebar before logging in, showing a "Login" button
  • In Cursor: verify the Tasks webview appears after authenticating

@EhabY EhabY self-assigned this Mar 13, 2026
@EhabY EhabY force-pushed the fix/cursor-tasks-view-container branch from f2b02c4 to b2e8f1e Compare March 13, 2026 14:03
@EhabY EhabY requested a review from mafredri March 16, 2026 10:33
@EhabY EhabY force-pushed the fix/cursor-tasks-view-container branch from 116402b to 5a91dd2 Compare March 16, 2026 15:26
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

EhabY added 2 commits March 16, 2026 20:44
Cursor has a bug where view containers whose views are all hidden via
`when` clauses never re-appear after the context changes. Add a
placeholder login tree view so the coderTasks container always has at
least one visible view.

Fixes #838
@EhabY EhabY force-pushed the fix/cursor-tasks-view-container branch from 5a91dd2 to 6873dc0 Compare March 16, 2026 17:45
@EhabY EhabY merged commit 923daf5 into main Mar 16, 2026
6 checks passed
@EhabY EhabY deleted the fix/cursor-tasks-view-container branch March 16, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coder Tasks view container not visible in Cursor due to conditional when clause

2 participants