GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Feature: Add sessionID to experimental.chat.system.transform hook for tracing integration · Issue #6142 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionSummaryWhen building observability plugins (e.g., Langfuse, OpenTelemetry exporters), it's valuable to capture the full system prompt for each LLM request and associate it with the correct trace/session. The Current BehaviorIn await Plugin.trigger("experimental.chat.system.transform", {}, { system }) The input object is empty Proposed ChangePass the await Plugin.trigger("experimental.chat.system.transform", { sessionID: input.sessionID }, { system }) And update the type definition in "experimental.chat.system.transform"?: ( input: { sessionID: string }, output: { system: string[] }, ) => Promise<void> Use CaseThis enables tracing plugins to:
Additional ContextI'm building a Langfuse exporter plugin for OpenCode. Currently I can capture:
But the system prompt is missing from traces, which makes debugging and analysis incomplete. Note: Similar issues were searched before filing. This report was created with AI assistance. Reacted by Jisu Yu, Victor Kasatkin, Jaid, nlp4whp, Ahn, zclllyybb, Julien LEICHER and StyleTang Reacted by nlp4whp and zclllyybb Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |