fix(FN-1992): show resolved agent names in chat avatars
- Resolve assistant avatar labels from the active session agent map with fallback handling - Keep the built-in KB agent label as Fusion and fall back to a truncated agent ID when needed - Apply resolved labels to both stored assistant messages and streaming assistant avatars - Add ChatView tests for resolved labels, KB-agent fallback, and streaming avatar rendering - Document the @fusion/engine prebuild prerequisite in .fusion/memory.md
This commit is contained in:
@@ -1431,11 +1431,13 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
|
||||
Promise.resolve().then(async () => {
|
||||
try {
|
||||
const generatedTitle = await options.onSummarize!(input.description);
|
||||
if (generatedTitle) {
|
||||
// Guard against races: fetch current task and only update if no title set
|
||||
const currentTask = await this.getTask(id);
|
||||
const normalizedTitle = generatedTitle?.trim();
|
||||
if (normalizedTitle) {
|
||||
// Guard against races: read directly from SQLite to avoid extra
|
||||
// prompt/step file I/O in this background path.
|
||||
const currentTask = this.readTaskFromDb(id);
|
||||
if (currentTask && !currentTask.title) {
|
||||
await this.updateTask(id, { title: generatedTitle });
|
||||
await this.updateTask(id, { title: normalizedTitle });
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user