Skip to content

Commit

Permalink
fix back button disappear on trace page
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am committed Dec 11, 2023
1 parent c70bcfc commit 9ac427f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion public/chat_header_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export const HeaderChatButton: React.FC<HeaderChatButtonProps> = (props) => {
selectedTabId,
preSelectedTabId,
setSelectedTabId: (tabId: TabId) => {
setPreSelectedTabId(selectedTabId);
if (selectedTabId !== tabId) {
setPreSelectedTabId(selectedTabId);
}
setSelectedTabId(tabId);
},
flyoutVisible,
Expand Down
2 changes: 1 addition & 1 deletion public/components/agent_framework_traces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ${result}
// if origin exists, it indicates that the trace was generated by a tool, we only show the non-empty traces of tools
.filter((trace) => trace.origin && (trace.input || trace.output))
.map((trace, i) => {
const stepContent = `Step ${i + 1}`;
const stepContent = `Step ${i + 1} - ${trace.origin}`;
return (
<div key={trace.interactionId}>
<EuiSpacer size="s" />
Expand Down
2 changes: 1 addition & 1 deletion server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class AssistantPlugin implements Plugin<AssistantPluginSetup, AssistantPl
}

public start(core: CoreStart) {
this.logger.debug('Observability: Started');
this.logger.debug('Assistant: Started');
return {};
}

Expand Down

0 comments on commit 9ac427f

Please sign in to comment.