Repository navigation
feat(chat-ui): surface pipeline result keys as message labels - #209
Merged
Merged
Conversation
Adds optional labeling of bot messages with the pipeline result field
name (e.g. "answers", "summary") that produced each response, giving
users visibility into which part of the pipeline generated a given reply.
Changes:
- `chat.types.ts`: Added optional `resultKey` field to the `Message`
interface to carry the pipeline result field name through to the UI.
- `pipelineUtils.ts`: Refactored `extractTextFromResult` to return
`TextResult[]` (objects with `text` and `key`) instead of plain
`string[]`, preserving the originating result field name alongside
each extracted string.
- `useChatMessages.ts`:
- Updated `sendMessage` return type to match the new `TextResult[]`
signature.
- Conditionally spreads `resultKey` onto bot `Message` objects when
a non-empty key is present.
- Added two AI formatting instructions to the question payload:
markdown formatting guidance and a directive to never return raw
tool output.
- `Message.tsx`: Renders `resultKey` inline with the timestamp as a
small italic label (preceded by a "·" separator) when present.
- `styles.css`: Added `.message-result-key` and
`.message-result-key::before` rules to style the label as muted,
small italic text consistent with the existing timestamp style.
stepmikhaylov
approved these changes
Mar 7, 2026
4 tasks
kwit75
pushed a commit
that referenced
this pull request
Jun 24, 2026
Closes 9 of 14 open Dependabot alerts on this repo. Two floor bumps on existing `pnpm.overrides` entries + one new entry; lockfile regenerated. The remaining 5 alerts are cryptography (#191/#192/#193 — handled in the #1290/#1291 PR pair and a follow-up for text_output) and nltk (#202/#203 — patched=null, tracked upstream). Alerts closed: #204 HIGH undici >=7.24.0 → >=7.28.0 #205 MED undici (same line) #209 LOW undici (same line) #210 HIGH undici (same line) #211 HIGH undici (same line) #212 MED undici (same line) #213 LOW undici (same line) #206 MED webpack-dev-server >=5.2.4 → >=5.2.5 #214 MED http-proxy-middleware new entry: >=2.0.10 <3 Lockfile-verified single resolutions post-edit: undici@7.28.0 webpack-dev-server@5.2.5 http-proxy-middleware@2.0.10
AviNormie
pushed a commit
to AviNormie/rocketride-server
that referenced
this pull request
Nov 9, 2026
…ride-org#209) Adds optional labeling of bot messages with the pipeline result field name (e.g. "answers", "summary") that produced each response, giving users visibility into which part of the pipeline generated a given reply. Changes: - `chat.types.ts`: Added optional `resultKey` field to the `Message` interface to carry the pipeline result field name through to the UI. - `pipelineUtils.ts`: Refactored `extractTextFromResult` to return `TextResult[]` (objects with `text` and `key`) instead of plain `string[]`, preserving the originating result field name alongside each extracted string. - `useChatMessages.ts`: - Updated `sendMessage` return type to match the new `TextResult[]` signature. - Conditionally spreads `resultKey` onto bot `Message` objects when a non-empty key is present. - Added two AI formatting instructions to the question payload: markdown formatting guidance and a directive to never return raw tool output. - `Message.tsx`: Renders `resultKey` inline with the timestamp as a small italic label (preceded by a "·" separator) when present. - `styles.css`: Added `.message-result-key` and `.message-result-key::before` rules to style the label as muted, small italic text consistent with the existing timestamp style.
AviNormie
pushed a commit
to AviNormie/rocketride-server
that referenced
this pull request
Nov 9, 2026
…etride-org#1342) Closes 9 of 14 open Dependabot alerts on this repo. Two floor bumps on existing `pnpm.overrides` entries + one new entry; lockfile regenerated. The remaining 5 alerts are cryptography (rocketride-org#191/rocketride-org#192/rocketride-org#193 — handled in the rocketride-org#1290/rocketride-org#1291 PR pair and a follow-up for text_output) and nltk (rocketride-org#202/rocketride-org#203 — patched=null, tracked upstream). Alerts closed: rocketride-org#204 HIGH undici >=7.24.0 → >=7.28.0 rocketride-org#205 MED undici (same line) rocketride-org#209 LOW undici (same line) rocketride-org#210 HIGH undici (same line) rocketride-org#211 HIGH undici (same line) rocketride-org#212 MED undici (same line) rocketride-org#213 LOW undici (same line) rocketride-org#206 MED webpack-dev-server >=5.2.4 → >=5.2.5 rocketride-org#214 MED http-proxy-middleware new entry: >=2.0.10 <3 Lockfile-verified single resolutions post-edit: undici@7.28.0 webpack-dev-server@5.2.5 http-proxy-middleware@2.0.10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds optional labeling of bot messages with the pipeline result field name (e.g. "answers", "summary") that produced each response, giving users visibility into which part of the pipeline generated a given reply.
Changes:
chat.types.ts: Added optionalresultKeyfield to theMessageinterface to carry the pipeline result field name through to the UI.pipelineUtils.ts: RefactoredextractTextFromResultto returnTextResult[](objects withtextandkey) instead of plainstring[], preserving the originating result field name alongside each extracted string.useChatMessages.ts:sendMessagereturn type to match the newTextResult[]signature.resultKeyonto botMessageobjects when a non-empty key is present.Message.tsx: RendersresultKeyinline with the timestamp as a small italic label (preceded by a "·" separator) when present.styles.css: Added.message-result-keyand.message-result-key::beforerules to style the label as muted, small italic text consistent with the existing timestamp style.