Skip to content
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: agent id briefly showing on breadcrumb in threads #1069

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/admin/app/routes/_auth.agents._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
} from "~/components/ui/tooltip";

export async function clientLoader() {
mutate(AgentService.getAgents.key(), ThreadsService.getThreads.key());
ivyjeong13 marked this conversation as resolved.
Show resolved Hide resolved
await Promise.all([
preload(AgentService.getAgents.key(), AgentService.getAgents),
preload(ThreadsService.getThreads.key(), ThreadsService.getThreads),
Expand Down Expand Up @@ -72,6 +71,7 @@ export default function Agents() {
name: generateRandomName(),
} as Agent,
}).then((agent) => {
mutate(AgentService.getAgents.key());
navigate(
$path("/agents/:agent", {
agent: agent.id,
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/routes/_auth.threads.$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function ChatAgent() {
throw new Error("Trying to view a thread with an unsupported parent.");
};

const [isAgent, entity] = [agent !== null, getEntity()];
const entity = getEntity();

return (
<div className="h-full flex flex-col overflow-hidden relative">
Expand Down