fix: use system role for user-idle prompt injections

The UserIdleHandler injected its "are you still there?" and disconnect
prompts as role="user" messages. These are agent-side directives, not
user utterances, so they should be injected as role="system" to avoid
polluting the conversation transcript with fake user turns and to read
correctly by the LLM. Updated the realtime append tests to match.

Also forward ports 3000 (UI) and 8000 (API) in the devcontainer so the
running services are reachable from the host.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Mohamed Mamdouh 2026-06-12 13:39:19 +01:00
parent 97d7103480
commit b5a192557b
3 changed files with 7 additions and 5 deletions

View file

@ -24,6 +24,8 @@
"postCreateCommand": "bash .devcontainer/scripts/post-create.sh",
"postStartCommand": "bash .devcontainer/scripts/post-start.sh",
"forwardPorts": [
3000,
8000,
5432,
6379,
9000,