Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: handle chat app not found#19947

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 11 commits intomainfrombq/fix-show-error-when-chat-unhelathy
Sep 26, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma commentedSep 24, 2025
edited
Loading

Sometimes users can misconfigure the app used for chat. When that happens, we should make it clear to the user.

Screenshot 2025-09-24 at 14 15 12
  • Handle “chat app not found.”
  • Simplify stories.
  • HaveTaskAppIframe handle all task iframes so we don’t need a separate iframe component for chat.

@BrunoQuaresmaBrunoQuaresma requested review fromjohnstcn anda teamSeptember 24, 2025 17:15
@BrunoQuaresmaBrunoQuaresma self-assigned thisSep 24, 2025
@BrunoQuaresmaBrunoQuaresma requested review fromaqandrew and removed request fora teamSeptember 24, 2025 17:15
@BrunoQuaresmaBrunoQuaresma changed the titlefix: handle sidebar app not foundfix: handle chat app not foundSep 24, 2025
@BrunoQuaresma
Copy link
CollaboratorAuthor

BrunoQuaresma commentedSep 25, 2025
edited
Loading

@johnstcn I’ve added support for unhealthy apps 🙏 — thanks a lot for catching that!

Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, just some potential enhancements for troubleshooting misbehaving workspace apps in the copy!

Comment on lines 99 to 103
App unhealthy
</h3>
<spanclassName="text-content-secondary text-sm">
Check the logs for details
</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

suggestion: add some more details so it's clear what the relevant app is, e.g.

Suggested change
Appunhealthy
</h3>
<spanclassName="text-content-secondary text-sm">
Checkthelogsfordetails
</span>
App"${app.name}"unhealthy
</h3>
<spanclassName="text-content-secondary text-sm">
Herearesometroubleshootingstepsyoucantake:
<ul>
<li>Try running the following inside your workspce:<code>curl -v "${app.healthcheck.url}"</code></li>
<li>Check<code>/tmp/coder-agent.log</code> inside your workspace "${workspace.name}" for more information.</li>
</ul>
</span>

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Updated using your suggestion as the base:

Screenshot 2025-09-26 at 11 17 49

johnstcn reacted with heart emoji
Copy link
Member

@aslilacaslilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

mostly looks good, I think cian is right about app health being valuable tho

BrunoQuaresma reacted with thumbs up emoji
Comment on lines 31 to 35
constapps=getTaskApps(task).filter(
// The Chat UI app will be displayed in the sidebar, so we don't want to
// show it as a web app.
(app)=>app.id!==task.workspace.latest_build.ai_task_sidebar_app_id,
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think agetTaskApp helper could still be nice here

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Not sure if I understood—getTaskApps is already being used 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

sorry, I meantgetChatApp

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

and you're right, it's doing the opposite here 🤦‍♀️

Comment on lines +149 to +151
constchatApp=getTaskApps(task).find(
(app)=>app.id===task.workspace.latest_build.ai_task_sidebar_app_id,
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

...and could be used here as well

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

They’re quite different:

  • The first removes the chat app from the apps list.
  • The second fetches the chat app.

The only common part is accessingai_task_sidebar_app_id, so a helper could be:

functiongetChatAppId(task:Task){returntask.workspace.latest_build.ai_task_sidebar_app_id;}

That said, I don’t see much value in adding this helper right now—what do you think?

@BrunoQuaresma
Copy link
CollaboratorAuthor

@asilac I’m merging this to help us identify some template issues in dogfood, but I’ll keep an eye on your comments and address any concerns or improvements in a follow-up PR.

@BrunoQuaresmaBrunoQuaresma merged commitc2d5143 intomainSep 26, 2025
32 checks passed
@BrunoQuaresmaBrunoQuaresma deleted the bq/fix-show-error-when-chat-unhelathy branchSeptember 26, 2025 15:36
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 26, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@aslilacaslilacaslilac left review comments

@johnstcnjohnstcnjohnstcn approved these changes

@aqandrewaqandrewAwaiting requested review from aqandrewaqandrew was automatically assigned from coder/ts

@ParkreinerParkreinerAwaiting requested review from ParkreinerParkreiner is a code owner

Assignees

@BrunoQuaresmaBrunoQuaresma

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@BrunoQuaresma@aslilac@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp