Repository navigation
fix: reasoning style #7843
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
fix: reasoning style #7843
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -185,7 +185,8 @@ export function createActivity() { | |
| } | ||
| last.text += event.delta | ||
| emit(scopeKey, { type, id: last.id, content: event.delta, ...(type === 'REASONING' ? { status: 'RUNNING' } : {}) }) | ||
| lastActivity.value = tail(last.text) | ||
| // lastActivity.value = tail(last.text) | ||
| lastActivity.value = event.type === 'reasoning' ? tail(last.text) : '' | ||
| } else if (event.type === 'tool_start') { | ||
| settle(scopeKey) | ||
| const delegate = DELEGATE_TOOLS.has(event.name) | ||
|
|
@@ -206,9 +207,7 @@ export function createActivity() { | |
| const name = toolTitle(toolCall) | ||
| emit( | ||
| toolCall.scopeKey, | ||
| toolCall.delegate | ||
| ? { type: 'GROUP', id: toolCall.contentId, name } | ||
| : { type: 'TOOL', id: toolCall.contentId, name, arguments: event.delta }, | ||
| toolCall.delegate ? { type: 'GROUP', id: toolCall.contentId, name } : { type: 'TOOL', id: toolCall.contentId, name, arguments: event.delta }, | ||
| ) | ||
| } else if (event.type === 'tool_end') { | ||
| const toolCall = toolCallById.get(event.id) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Irregularities / Issues
Minor / Style
Optimization suggestions
Action items
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Observations & Suggestions:
Commented-out code should be removed, not left in. Dead code (the commented
<span>) clutters the file and will drift out of sync. If it's needed later, rely on Git history. Delete it.Potential unused variable/refs after removal. With that
<span>gone,currentActivity(computed at line ~78) may no longer be referenced anywhere. If so:currentActivitycomputed property to avoid dead code and unnecessary re-computation.currentActivityare now unused (linters like ESLintno-unused-varsshould flag these).Behavioral change — intentional? This removes the inline "current activity" text from collapsed tabs. If this is a temporary debug toggle, use a feature flag /
v-if="false"with a TODO comment rather than raw HTML comments, or better, gate via a config constant.Duplicate
:titleconcern (if restored). Both the name span and activity span set:title. When overlayed/clipped they can conflict for tooltip UX — fine as-is but worth noting.Accessibility: The loading indicator
<span class="mk-conversation-loading" />is decorative; consideraria-hidden="true"plus anaria-labelor visually-hidden text ("Running") for screen readers.Whitespace/formatting: No other irregularities in the diff itself; indentation matches surrounding code.
Recommended action: Delete the commented span entirely; if
currentActivitybecomes orphaned, remove it and its dependencies; confirm the activity-text removal is intended product behavior.