Skip to content

feat(ui,cli): make task title optional with AI auto-generation#307

Merged
bborn merged 2 commits intomainfrom
task/777-make-title-optional
Jan 31, 2026
Merged

feat(ui,cli): make task title optional with AI auto-generation#307
bborn merged 2 commits intomainfrom
task/777-make-title-optional

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 31, 2026

Summary

  • Add GenerateTitle function to autocomplete service for AI-powered title generation from task descriptions
  • Update form placeholders to indicate title is optional when details are provided
  • Show "✨ AI will generate title" indicator in the UI when title is empty but body has content
  • CLI create command now accepts 0 or 1 positional args - title is optional with --body flag
  • Both UI and CLI use the same fallback when AI is unavailable: first line of body truncated at 50 chars

How it works

  1. UI: When creating a new task, if the user leaves the title empty but provides details in the body field, an indicator shows that AI will generate the title on submission
  2. CLI: task create --body "The login button is broken" will auto-generate a title like "Fix login button"
  3. Fallback: If no API key is configured or the LLM call fails, uses the first line of the body (truncated) as the title

Test plan

  • Build passes: go build ./...
  • All existing tests pass: go test ./...
  • New tests added for GenerateTitle and buildTitleGenerationPrompt functions
  • Manual test: Create task via UI with only details, verify AI generates title
  • Manual test: Create task via CLI with --body flag only, verify AI generates title
  • Manual test: Verify fallback works when API key is not configured

🤖 Generated with Claude Code

bborn and others added 2 commits January 31, 2026 07:53
When a user provides a description/body but no title, the system
now automatically generates a concise title using the LLM.

Changes:
- Add GenerateTitle function to autocomplete service for title generation
- Update form placeholders to indicate title is optional when details provided
- Show "✨ AI will generate title" indicator when title is empty but body has content
- CLI create command now accepts 0 or 1 positional args with --body flag
- Both UI and CLI use the same fallback: first line of body truncated at 50 chars

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit febe4f9 into main Jan 31, 2026
3 checks passed
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