mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fmt(js): npm run fix on merge (#67995)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
4ef92d2e5d
commit
e89bc58a5b
7 changed files with 125 additions and 125 deletions
|
|
@ -381,7 +381,10 @@ function ToolEntry({ part }: ToolEntryProps) {
|
|||
)
|
||||
|
||||
const showRawSearchDrilldown =
|
||||
part.toolName === 'web_search' && part.result !== undefined && toolViewMode !== 'technical' && Boolean(rawResult.trim())
|
||||
part.toolName === 'web_search' &&
|
||||
part.result !== undefined &&
|
||||
toolViewMode !== 'technical' &&
|
||||
Boolean(rawResult.trim())
|
||||
|
||||
const hasExpandableContent = Boolean(
|
||||
view.imageUrl || view.inlineDiff || showDetail || hasSearchHits || toolViewMode === 'technical'
|
||||
|
|
@ -596,9 +599,7 @@ function ToolEntry({ part }: ToolEntryProps) {
|
|||
{showRawSearchDrilldown && (
|
||||
<details className="max-w-full">
|
||||
<summary className={cn(TOOL_SECTION_LABEL_CLASS, 'mb-0')}>{copy.rawResponse}</summary>
|
||||
<pre className={cn(TOOL_SECTION_PRE_CLASS, 'mt-1 whitespace-pre-wrap wrap-anywhere')}>
|
||||
{rawResult}
|
||||
</pre>
|
||||
<pre className={cn(TOOL_SECTION_PRE_CLASS, 'mt-1 whitespace-pre-wrap wrap-anywhere')}>{rawResult}</pre>
|
||||
</details>
|
||||
)}
|
||||
{toolViewMode === 'technical' && !(isFileEdit && view.inlineDiff) && (
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ describe('forceLoneHeaderForPanes', () => {
|
|||
const chrome =
|
||||
(placement?: string, uncloseable = false) =>
|
||||
() => ({ placement, uncloseable })
|
||||
|
||||
const noCollapse = () => false
|
||||
|
||||
it('forces a header for session-tile ids even without registered chrome', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue