Skip to content

feat(sessions): inject session ID into dynamic context layers#218

Merged
Aaronontheweb merged 2 commits into
devfrom
claude-wt-sessionid-injection
Mar 13, 2026
Merged

feat(sessions): inject session ID into dynamic context layers#218
Aaronontheweb merged 2 commits into
devfrom
claude-wt-sessionid-injection

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Collaborator

Summary

  • Injects the session identity ([session]\nid: {channelId}/{threadTs}) into the per-turn dynamic context layers so the agent can be self-referential about its own session
  • Appended alongside existing context layers (time, tool index, skill index, memory status) in LlmSessionActor.InjectDynamicContextLayers()
  • No new classes, DI changes, or persistence impact — uses the existing _sessionId field

Test plan

  • dotnet build passes
  • Existing LlmSessionActor tests pass (no behavior change)
  • Manual verification: start a session and confirm the injected system message includes [session] block with session ID

Append the session identity as a [session] block in the per-turn
dynamic context so the agent can be self-referential about its own
session when needed.
@Aaronontheweb Aaronontheweb enabled auto-merge (squash) March 13, 2026 21:13
@Aaronontheweb Aaronontheweb merged commit a1ddbb8 into dev Mar 13, 2026
2 of 3 checks passed
@Aaronontheweb Aaronontheweb deleted the claude-wt-sessionid-injection branch March 13, 2026 21:17
@Aaronontheweb Aaronontheweb mentioned this pull request Mar 13, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant