Skip to content

feat(app): add /cd slash command with directory picker#16167

Open
6crucified wants to merge 1 commit intoanomalyco:devfrom
6crucified:askr/cd-autocomplete
Open

feat(app): add /cd slash command with directory picker#16167
6crucified wants to merge 1 commit intoanomalyco:devfrom
6crucified:askr/cd-autocomplete

Conversation

@6crucified
Copy link

@6crucified 6crucified commented Mar 5, 2026

Issue for this PR

Closes #15220

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This adds a built-in slash command in the app session command list so it shows up in slash autocomplete.

When selected, opens the existing interactive directory picker and then navigates to the selected directory session route.

This works because slash autocomplete is driven by registered built-in commands, and the directory picker already provides searchable folder selection.

How did you verify your code works?

  • Ran • Packages in scope: @opencode-ai/app, @opencode-ai/console-app, @opencode-ai/console-core, @opencode-ai/console-function, @opencode-ai/console-mail, @opencode-ai/console-resource, @opencode-ai/desktop, @opencode-ai/desktop-electron, @opencode-ai/enterprise, @opencode-ai/function, @opencode-ai/plugin, @opencode-ai/script, @opencode-ai/sdk, @opencode-ai/slack, @opencode-ai/storybook, @opencode-ai/ui, @opencode-ai/util, @opencode-ai/web, opencode
    • Running typecheck in 19 packages
    • Remote caching disabled
    @opencode-ai/sdk:typecheck: cache hit, replaying logs e874edd17e50382f
    opencode:typecheck: cache miss, executing c01d7110d8d58af7
    @opencode-ai/sdk:typecheck: $ tsgo --noEmit
    @opencode-ai/ui:typecheck: cache miss, executing 7d99ef980ec9ac70
    @opencode-ai/console-app:typecheck: cache miss, executing 194ffd7299b685e6
    @opencode-ai/desktop-electron:typecheck: cache hit, replaying logs 17fa77d06c9bd1a5
    @opencode-ai/desktop-electron:typecheck: $ tsgo -b
    @opencode-ai/app:typecheck: cache miss, executing c63fe07a60a2df75
    opencode:typecheck: $ tsgo --noEmit
    @opencode-ai/ui:typecheck: $ tsgo --noEmit
    @opencode-ai/plugin:typecheck: cache hit, replaying logs f4d5dc11cb31e7af
    @opencode-ai/plugin:typecheck: $ tsgo --noEmit
    @opencode-ai/util:typecheck: cache hit, replaying logs f25ce5293b3b0563
    @opencode-ai/util:typecheck: $ tsc --noEmit
    @opencode-ai/console-app:typecheck: $ tsgo --noEmit
    @opencode-ai/desktop:typecheck: cache hit, replaying logs 2514a24628c1a2ac
    @opencode-ai/desktop:typecheck: $ tsgo -b
    @opencode-ai/console-core:typecheck: cache hit, replaying logs 42b142a2c3111763
    @opencode-ai/console-core:typecheck: $ tsgo --noEmit
    @opencode-ai/console-function:typecheck: cache hit, replaying logs 8da7d856c3126fdd
    @opencode-ai/console-function:typecheck: $ tsgo --noEmit
    @opencode-ai/enterprise:typecheck: cache miss, executing dee1313a1c0f83a7
    @opencode-ai/app:typecheck: $ tsgo -b
    @opencode-ai/slack:typecheck: cache hit, replaying logs f5dccfa91d2cfcda
    @opencode-ai/slack:typecheck: $ tsgo --noEmit
    @opencode-ai/enterprise:typecheck: $ tsgo --noEmit

Tasks: 13 successful, 13 total
Cached: 8 cached, 13 total
Time: 3.622s in

  • Manually verified:
    • shows in slash autocomplete
    • selecting opens directory picker
    • selecting a directory navigates to that workspace session

Screenshots / recordings

test.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@Tsurgcom
Copy link

Tsurgcom commented Mar 5, 2026

I just created a clone and vibecoded a solution just to find you did it a few hours before me 🤣

@6crucified
Copy link
Author

I just created a clone and vibecoded a solution just to find you did it a few hours before me 🤣

which app did you use?

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.

[FEATURE]: /cd command: add to slash command autocomplete list + interactive directory picker

2 participants