v1.5.0: Inline subagent panels, Bedrock compaction fixes, context window debug view
New features: - Inline subagent panels with expand/collapse and click-to-toggle - /context slash command to inspect bedrock_message_history - Child-to-parent question routing with auto-answer for subagents - Subagent token usage and cost merging into parent conversation - Randomized session-colored user avatar silhouettes Bug fixes: - Bedrock: remove orphaned tool_results after compaction - Bedrock: self-healing exchange lookup for out-of-order streaming - Bedrock: append continuation prompt when conversation ends with assistant - Duration sanity check rejects epoch-time artifacts from session restore - Cache hit rate calculation uses actual total_input_tokens - Hide "Time to first token" when value is zero Improvements: - Demote verbose bedrock-debug logs to debug/trace levels - Bedrock tool usage counting falls back to action counting - Remove logout menu item from workspace menu Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
6f54e2cb30
commit
f278e53b7e
@@ -758,8 +758,25 @@ impl Task {
|
||||
.enumerate()
|
||||
.find(|(_, m)| message.id == m.id)
|
||||
else {
|
||||
log::error!("Message not found for append client action.");
|
||||
return Err(UpdateTaskError::MessageNotFound);
|
||||
// Self-healing: if the message doesn't exist yet (e.g. the initial
|
||||
// AddMessagesToTask was dropped or arrived out of order), treat this
|
||||
// append as an implicit add so streaming doesn't break.
|
||||
log::warn!(
|
||||
"[bedrock] append_to_message_content: message_id={} not found, treating as implicit add",
|
||||
message.id
|
||||
);
|
||||
self.add_messages(
|
||||
vec![message],
|
||||
exchange_id,
|
||||
current_todo_list,
|
||||
current_comments,
|
||||
false,
|
||||
)?;
|
||||
return self
|
||||
.try_get_source()?
|
||||
.messages
|
||||
.last()
|
||||
.ok_or(UpdateTaskError::MessageNotFound);
|
||||
};
|
||||
let updated_message =
|
||||
FieldMaskOperation::append(&api::MESSAGE_DESCRIPTOR, existing_message, &message, mask)
|
||||
|
||||
Reference in New Issue
Block a user