Conversation
|
@DevDesai444 is attempting to deploy a commit to the General Action Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryImplements context-aware auto-inference of task names from prompts and linked issues (GitHub/Linear/Jira). Names are now optional when auto-generation is enabled, with inference happening at modal open and dynamically updating as context changes. The feature reduces friction in quick-start workflows by matching ChatGPT/Claude-style auto-titling behavior. Key changes:
Issue found: Button validation logic on line 451 of TaskModal.tsx doesn't account for the new blank-name-allowed flow, potentially enabling submission when it shouldn't be allowed. Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| src/renderer/lib/taskNames.ts | Adds context-aware task name inference engine with keyword extraction, stop-word filtering, and issue-prefix support |
| src/renderer/components/TaskModal.tsx | Integrates auto-inferred names with optional name field and dynamic context updates; has button validation bug |
| src/renderer/components/TaskSettingsRows.tsx | Updated setting description to clarify context-based name inference |
| src/test/renderer/taskNames.test.ts | Basic test coverage for prompt inference, issue identifiers, uniqueness, and fallback behavior |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User Opens Task Modal] --> B{Auto-Generate<br/>Setting Enabled?}
B -->|Yes| C[inferNameFromContext]
B -->|No| D[Show Empty Name Field<br/>Required]
C --> E{Has Linked Issue?}
E -->|Yes| F[Extract Issue Prefix<br/>gh-N, JIRA-KEY, etc]
E -->|No| G[No Prefix]
F --> H[Extract Keywords from<br/>Issue Title + Prompt]
G --> H
H --> I[Remove Stop Words<br/>Strip Noise]
I --> J[Build Name:<br/>prefix-keyword1-keyword2...]
J --> K{Name Exists?}
K -->|Yes| L[Add Suffix -2, -3, etc]
K -->|No| M[Use Name]
L --> M
M --> N[Display in Name Field]
O[User Types in Field] --> P{User Input Empty?}
P -->|Yes & Auto-Gen On| C
P -->|No| Q[Use Custom Name]
R[Submit Button Click] --> S{Name Field Empty?}
S -->|Yes & Auto-Gen On| T[Resolve Name at Submit]
S -->|No| U[Use Field Value]
T --> V[Create Task]
U --> V
Last reviewed commit: 158ac98
Additional Comments (1)
|
Resolves
Resolves Feature: Auto-infer workspace names from conversation context #1033.
Issue Details (What #1033 Requested)
Current Behavior
Expected Behavior
Why This Matters
What This PR Changes
1) Context-based naming engine
Implemented in:
./emdash/src/renderer/lib/taskNames.tsAdded
inferTaskNameFromContext(...)that infers names from:Heuristics include:
gh-<number>, issue key/id)2) Task/workspace creation flow update
Implemented in:
./emdash/src/renderer/components/TaskModal.tsxBehavior now:
When auto-generate is OFF:
3) Settings copy alignment
Updated in:
./emdash/src/renderer/components/TaskSettingsRows.tsxText now clearly says name is inferred from prompt/linked issue context.
4) Tests
Added:
./emdash/src/test/renderer/taskNames.test.tsCoverage:
Validation
pnpm run formatpnpm run type-checkpnpm run lint(existing warnings only, no new errors)pnpm exec vitest run(all tests pass)Scope Notes