Skip to content

refactor(chat): add more info to show in history tab #7966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 21, 2025

Conversation

abeatrix
Copy link
Collaborator

Enhances the history tab by displaying the chat mode (e.g., "Agentic", "Search") and the model used for each chat on hover.

The changes include:

  • Adding model and mode fields to the LightweightChatTranscript interface to store the model and intent of the chat.
  • Updating the toLightweightChatTranscript function to extract the model and intent from the transcript.
  • Modifying the HistoryTabWithData component to display the chat mode and model in the history list.
  • Updating the INTENT_MAPPING to include a fallback to 'chat' to avoid undefined values.

Test plan

Minor UI update. Everything works as before. Last chat model used will show up on hover when available.
Non-chat mode will have mode title appended to title name.

Enhances the history tab by displaying the chat mode (e.g., "Agentic", "Search") and the model used for each chat on hover.

The changes include:

- Adding `model` and `mode` fields to the `LightweightChatTranscript` interface to store the model and intent of the chat.
- Updating the `toLightweightChatTranscript` function to extract the model and intent from the transcript.
- Modifying the `HistoryTabWithData` component to display the chat mode and model in the history list.
- Updating the `INTENT_MAPPING` to include a fallback to 'chat' to avoid undefined values.
@abeatrix abeatrix requested review from julialeex and a team May 20, 2025 22:42
@abeatrix abeatrix enabled auto-merge (squash) May 21, 2025 19:13
@abeatrix abeatrix merged commit 46d8014 into main May 21, 2025
19 of 21 checks passed
@abeatrix abeatrix deleted the bee/history-tab-info branch May 21, 2025 20:38
abeatrix added a commit that referenced this pull request May 21, 2025
Enhances the history tab by displaying the chat mode (e.g., "Agentic",
"Search") and the model used for each chat on hover.

The changes include:

- Adding `model` and `mode` fields to the `LightweightChatTranscript`
interface to store the model and intent of the chat.
- Updating the `toLightweightChatTranscript` function to extract the
model and intent from the transcript.
- Modifying the `HistoryTabWithData` component to display the chat mode
and model in the history list.
- Updating the `INTENT_MAPPING` to include a fallback to 'chat' to avoid
undefined values.


## Test plan

<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->

Minor UI update. Everything works as before. Last chat model used will
show up on hover when available.
Non-chat mode will have mode title appended to title name.
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.

2 participants