ZIm/crates/agent_ui/src
Umesh Yadav 875c86e3ef
agent_ui: Fix token count not getting shown in the TextThread (#34485)
Closes #34319 

In this pr: https://github.com/zed-industries/zed/pull/33462 there was
check added for early return for active_thread and message_editor as
those are not present in the TextThread and only available in the Thread
the token count was not getting triggered for TextThread this pr fixes
that regression by moving the logic specific to Thread inside of thread
view match.

<img width="3024" height="1886" alt="CleanShot 2025-07-15 at 23 50
18@2x"
src="https://github.com/user-attachments/assets/bd74ae8b-6c37-4cdd-ab95-d3c253b8a948"
/>


Release Notes:

- Fix token count not getting shown in the TextThread
2025-07-16 10:39:07 -04:00
..
acp Display and jump to tool locations (#34304) 2025-07-11 14:52:21 -03:00
agent_configuration Fix panic in context server configuration (#34118) 2025-07-09 16:39:02 +02:00
context_picker agent: Show line numbers of symbols when using @symbol (#34004) 2025-07-07 10:53:59 +00:00
ui Move the LoadingLabel component to the UI crate (#33893) 2025-07-04 04:49:11 +00:00
acp.rs Improve thread message history (#34299) 2025-07-11 16:24:41 +00:00
active_thread.rs Automatically retry in more situations (#34473) 2025-07-15 14:22:13 -04:00
agent_configuration.rs ui: Add Chip component (#34521) 2025-07-16 01:15:45 -03:00
agent_diff.rs Automatically retry in more situations (#34473) 2025-07-15 14:22:13 -04:00
agent_model_selector.rs agent: Show provider icon in model selectors (#30595) 2025-06-27 19:33:58 -03:00
agent_panel.rs agent_ui: Fix token count not getting shown in the TextThread (#34485) 2025-07-16 10:39:07 -04:00
agent_ui.rs agent: Add menu in the plus icon button for creating a new thread (#34143) 2025-07-09 15:44:45 -03:00
buffer_codegen.rs agent: Disable thinking when using inline assistant/edit file tool (#34141) 2025-07-09 18:05:39 +00:00
burn_mode_tooltip.rs agent_ui: Rename MaxModeTooltip to BurnModeTooltip (#33521) 2025-06-27 13:56:46 +02:00
context_picker.rs ACP (#34030) 2025-07-09 16:02:31 +00:00
context_server_configuration.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
context_strip.rs agent: Move ActiveThread and MessageEditor into ActiveView (#33462) 2025-06-26 15:36:23 +00:00
debug.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
inline_assistant.rs editor: Improve minimap performance (#33067) 2025-07-15 00:29:27 +03:00
inline_prompt_editor.rs Move UI code from assistant_context_editor -> agent_ui (#33289) 2025-06-23 22:22:01 -07:00
language_model_selector.rs gpui: Store action documentation (#33809) 2025-07-02 21:14:33 -04:00
message_editor.rs ACP follow (#34235) 2025-07-11 12:38:42 -03:00
profile_selector.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
slash_command.rs Move UI code from assistant_context_editor -> agent_ui (#33289) 2025-06-23 22:22:01 -07:00
slash_command_picker.rs Move UI code from assistant_context_editor -> agent_ui (#33289) 2025-06-23 22:22:01 -07:00
slash_command_settings.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
terminal_codegen.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
terminal_inline_assistant.rs agent: Disable thinking when using inline assistant/edit file tool (#34141) 2025-07-09 18:05:39 +00:00
text_thread_editor.rs editor: Improve minimap performance (#33067) 2025-07-15 00:29:27 +03:00
thread_history.rs Extract an agent_ui crate from agent (#33284) 2025-06-23 18:00:28 -07:00
tool_compatibility.rs agent: Fix issue with duplicated tool names from MCP servers (#33811) 2025-07-02 20:32:07 +00:00
ui.rs Move the LoadingLabel component to the UI crate (#33893) 2025-07-04 04:49:11 +00:00