Skip to content

Open task directory in appropriate app when process not running#520

Open
bborn wants to merge 1 commit intomainfrom
task/1953-open-task-directory-in-appropriate-appli
Open

Open task directory in appropriate app when process not running#520
bborn wants to merge 1 commit intomainfrom
task/1953-open-task-directory-in-appropriate-appli

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Mar 22, 2026

Summary

  • When pressing 'b' and the task process is not running, opens the task directory instead of the browser
  • If the directory contains source files (detected by project markers like go.mod, package.json, Cargo.toml, etc.), opens in VS Code
  • Falls back to opening in Finder/default file manager if no source files or VS Code unavailable
  • Help text dynamically updates to show "open dir" vs "browser" based on process state

Test plan

  • containsSourceFiles unit tests for various project types (Go, Node, Rust, Python, etc.)
  • Tests for empty directories and non-source directories
  • Full UI test suite passes
  • Manual: press 'b' on a task with running process → opens browser
  • Manual: press 'b' on a task without running process (source files) → opens VS Code
  • Manual: press 'b' on a task without running process (no source files) → opens Finder

🤖 Generated with Claude Code

When pressing 'b' in task detail/dashboard view, if the process is not
running, open the task directory instead of the browser. Opens in VS Code
if source files are detected (via project markers like go.mod,
package.json, etc.), otherwise falls back to Finder. The help text
dynamically shows "open dir" vs "browser" based on process state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant