Fix X-Initiator header logic for GitHub Copilot

Check last message role instead of any message in history.
This matches the original correct implementation from PR #200.

fixes #209
This commit is contained in:
Mario Zechner 2025-12-19 05:08:28 +01:00
parent 13b8af1f36
commit 575dcb2676
5 changed files with 18 additions and 14 deletions

2
package-lock.json generated
View file

@ -6555,7 +6555,7 @@
"chalk": "^5.5.0"
},
"bin": {
"pi": "dist/cli.js"
"pi-pods": "dist/cli.js"
},
"devDependencies": {},
"engines": {