File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ class PromptClient {
8484 content : response . content ,
8585 version : response . version ,
8686 versionId : response . version_id ,
87+ taskId : response . task_id || null ,
8788 promptSlug : response . prompt || null ,
8889 tag : response . tag ,
8990 isLatest : response . is_latest ,
Original file line number Diff line number Diff line change @@ -142,8 +142,9 @@ export async function prompt(options: PromptOptions): Promise<string> {
142142 }
143143
144144 // Build metadata for decoration
145+ // Use the actual task ID from the backend when available; fall back to name
145146 const metadata : PromptMetadata = {
146- task : name ,
147+ task : promptObj . taskId || name ,
147148 } ;
148149
149150 if ( variables && Object . keys ( variables ) . length > 0 ) {
Original file line number Diff line number Diff line change 44 */
55export interface PromptResponse {
66 prompt : string ; // prompt slug
7+ task_id : string | null ; // actual task UUID from backend
78 version_id : string ;
89 version : number ;
910 tag : string | null ;
@@ -30,6 +31,7 @@ export interface Prompt {
3031 content : string ;
3132 version : number | null ;
3233 versionId : string | null ;
34+ taskId : string | null ;
3335 promptSlug : string | null ;
3436 tag : string | null ;
3537 isLatest : boolean ;
You can’t perform that action at this time.
0 commit comments