Formatting
This commit is contained in:
@@ -315,7 +315,9 @@ export class TuiRenderer implements AgentEventReceiver {
|
|||||||
this.tokenContainer.clear();
|
this.tokenContainer.clear();
|
||||||
|
|
||||||
// Build token display text
|
// Build token display text
|
||||||
let tokenText = chalk.dim(`↑ ${this.lastInputTokens.toLocaleString()} ↓ ${this.lastOutputTokens.toLocaleString()}`);
|
let tokenText = chalk.dim(
|
||||||
|
`↑ ${this.lastInputTokens.toLocaleString()} ↓ ${this.lastOutputTokens.toLocaleString()}`,
|
||||||
|
);
|
||||||
|
|
||||||
// Add reasoning tokens if present
|
// Add reasoning tokens if present
|
||||||
if (this.lastReasoningTokens > 0) {
|
if (this.lastReasoningTokens > 0) {
|
||||||
@@ -380,8 +382,9 @@ export class TuiRenderer implements AgentEventReceiver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private showTokenUsage(): void {
|
private showTokenUsage(): void {
|
||||||
|
let tokenText = chalk.dim(
|
||||||
let tokenText = chalk.dim(`Total usage\n input: ${this.cumulativeInputTokens.toLocaleString()}\n output: ${this.cumulativeOutputTokens.toLocaleString()}`);
|
`Total usage\n input: ${this.cumulativeInputTokens.toLocaleString()}\n output: ${this.cumulativeOutputTokens.toLocaleString()}`,
|
||||||
|
);
|
||||||
|
|
||||||
if (this.cumulativeReasoningTokens > 0) {
|
if (this.cumulativeReasoningTokens > 0) {
|
||||||
tokenText += chalk.dim(`\n reasoning: ${this.cumulativeReasoningTokens.toLocaleString()}`);
|
tokenText += chalk.dim(`\n reasoning: ${this.cumulativeReasoningTokens.toLocaleString()}`);
|
||||||
@@ -398,7 +401,6 @@ export class TuiRenderer implements AgentEventReceiver {
|
|||||||
tokenText += chalk.dim(` ${cacheText.join(" ")}`);
|
tokenText += chalk.dim(` ${cacheText.join(" ")}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (this.cumulativeToolCallCount > 0) {
|
if (this.cumulativeToolCallCount > 0) {
|
||||||
tokenText += chalk.dim(`\n tool calls: ${this.cumulativeToolCallCount}`);
|
tokenText += chalk.dim(`\n tool calls: ${this.cumulativeToolCallCount}`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -658,7 +658,7 @@ export class TextEditor implements Component {
|
|||||||
// For now, fall back to regular autocomplete (slash commands)
|
// For now, fall back to regular autocomplete (slash commands)
|
||||||
// This can be extended later to handle command-specific argument completion
|
// This can be extended later to handle command-specific argument completion
|
||||||
this.tryTriggerAutocomplete(true);
|
this.tryTriggerAutocomplete(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private forceFileAutocomplete(): void {
|
private forceFileAutocomplete(): void {
|
||||||
if (!this.autocompleteProvider) return;
|
if (!this.autocompleteProvider) return;
|
||||||
@@ -685,7 +685,6 @@ export class TextEditor implements Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private cancelAutocomplete(): void {
|
private cancelAutocomplete(): void {
|
||||||
this.isAutocompleting = false;
|
this.isAutocompleting = false;
|
||||||
this.autocompleteList = undefined as any;
|
this.autocompleteList = undefined as any;
|
||||||
|
|||||||
Reference in New Issue
Block a user