Skip to content

Commit 6f6906b

Browse files
committed
Simplify task file header with AGENT and SESSION_ID fields
1 parent abeedd7 commit 6f6906b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ai-code-prompt-mode.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,9 @@ using GPTel, and creates the task file."
525525
(insert (format "#+DATE: %s\n" (format-time-string "%Y-%m-%d")))
526526
(unless (string-empty-p task-url)
527527
(insert (format "#+URL: %s\n" task-url)))
528-
(let* ((label (ai-code-current-backend-label))
529-
(field (upcase (replace-regexp-in-string "[^A-Za-z0-9]+" "_" label))))
530-
(insert (format "#+%s_SESSION_ID: <Usually you can get the session id with /status or /stat in AI coding window>\n" field)))
528+
(let ((label (ai-code-current-backend-label)))
529+
(insert (format "#+AGENT: %s\n" label))
530+
(insert "#+SESSION_ID: <Usually you can get the session id with /status or /stat in AI coding window>\n"))
531531
(insert "\n* Task Description\n\n")
532532
(insert task-name)
533533
(insert "\n\n* Investigation\n\n")

0 commit comments

Comments
 (0)