Skip to content

fix: show project selector when creating new task#300

Merged
ruudandriessen merged 2 commits intomainfrom
ruudandriessen/fix-runner-dist
Mar 28, 2026
Merged

fix: show project selector when creating new task#300
ruudandriessen merged 2 commits intomainfrom
ruudandriessen/fix-runner-dist

Conversation

@ruudandriessen
Copy link
Copy Markdown
Owner

This updates the New Task button to support multiple projects.\n\nWhen only one project exists, the button still creates a task immediately. When multiple projects exist, the button now opens a dropdown so the user can pick the target project, and task creation uses the selected project's id and repo URL.\n\nThe icon-only variant keeps tooltip and hotkey hints, and projects without a repo URL are disabled in the menu.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clanki-ai Ready Ready Preview, Comment Mar 27, 2026 9:12pm
clanki-ai-marketing Ready Ready Preview, Comment Mar 27, 2026 9:12pm

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bf986800a0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +43 to +45
useHotkey(hotkeys.newTask.keys, () => handleNewTask(), { enabled: hotkeyEnabled });

function handleNewTask() {
const repoUrl = defaultProject?.repo_url;
if (creating || !defaultProject || !repoUrl) {
function handleNewTask(project = defaultProject) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Require project choice when hotkey creates a new task

With multiple projects configured, pressing the newTask hotkey still calls handleNewTask() without an explicit project, and handleNewTask now defaults to defaultProject. This bypasses the new project-selection flow and can create tasks in the wrong repository (typically the oldest project) without user intent, which is a functional regression for multi-project users compared to the button path that forces selection.

Useful? React with 👍 / 👎.

@ruudandriessen ruudandriessen merged commit e6f2375 into main Mar 28, 2026
8 checks passed
@ruudandriessen ruudandriessen deleted the ruudandriessen/fix-runner-dist branch March 28, 2026 08:17
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