Skip to content

feat(agentStudio): surface thread depth error#26

Merged
pipeline1987 merged 3 commits intomainfrom
feat/agent-studio-surface-thread-depth-error
Apr 14, 2026
Merged

feat(agentStudio): surface thread depth error#26
pipeline1987 merged 3 commits intomainfrom
feat/agent-studio-surface-thread-depth-error

Conversation

@pipeline1987
Copy link
Copy Markdown
Contributor

@pipeline1987 pipeline1987 commented Apr 8, 2026

🤔 What

Improves Ask AI in @algolia/sitesearch:

  • new sidepanel experience,
  • Agent Studio / thread-depth handling, and chat + markdown polish.
  • Docs registry hooks and the vanilla demo are updated to match.

How 🧐

  • Ask AI core: thread-depth / Agent Studio–related behavior and messaging (see askai.ts, error-utils.tsx, index.tsx, search-input.tsx).
  • Sidepanel Ask AI: new entry (sidepanel-askai), portal + floating panel shell, footer aligned with docsearch-style AI disclaimer and Powered by Algolia.
  • ChatWidget: optional showAiDisclaimer / newestExchangeFirst; chronological order for sidepanel with stick-to-bottom scroll when appropriate.
  • Markdown / code: theme tokens for dark-mode code blocks and inline code; horizontal overflow fixes (flex min-width: 0, constrained snippets, pre scroll).
  • Vanilla: sidepanel-askai init, shared resolve-container-element helper; search/search-askai init aligned.

🧪 How to test

  1. On Ask AI, hit thread-depth limit → see error + start new conversation; confirm the next turn uses a new API thread, not the capped one.
  2. In the modal, send several follow-ups (Enter) → same conversation until you explicitly start new or leave Ask AI.
  3. Sidepanel: open vanilla demo (or your integration), dark + light, long code blocks, new vs old messages order.

📸 Screenshots

image image

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 8, 2026

Deploy Preview for sitesearch-docs ready!

Name Link
🔨 Latest commit f0a54fa
🔍 Latest deploy log https://app.netlify.com/projects/sitesearch-docs/deploys/69dd5705257b7c00084edaba
😎 Deploy Preview https://deploy-preview-26--sitesearch-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 8, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 47 complexity · 6 duplication

Metric Results
Complexity 47
Duplication 6

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@pipeline1987 pipeline1987 force-pushed the feat/agent-studio-surface-thread-depth-error branch from cf5979a to 0203b91 Compare April 8, 2026 21:03
@pipeline1987 pipeline1987 force-pushed the feat/agent-studio-surface-thread-depth-error branch 5 times, most recently from e4f0ebe to 4010acd Compare April 10, 2026 16:14
Comment thread apps/vanilla/index.html Outdated
Copy link
Copy Markdown
Collaborator

@LorrisSaintGenez LorrisSaintGenez left a comment

Choose a reason for hiding this comment

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

A few comments on the experience:

  • We should try to match the pre-existing React design
React VanillaJS
Image Image
  • When clicking the LeftArrow on thread error, we are "blocked" until we exit the modal entirely to create a new convo. Clicking the arrow should allow us to start a new convo directly
Screen.Recording.2026-04-10.at.12.10.01.mov
  • Not sure if we can get something about it, but it's a bit frustrating when the message we wrote is not visible even when we hit the thread depth limit. We should display it anyway like we do on AgentStudio
Image
Screen.Recording.2026-04-10.at.12.10.30.mov

Comment thread packages/standalone/src/components/search-askai/chat.tsx Outdated
Comment thread packages/standalone/src/components/search-askai/chat.tsx Outdated
@pipeline1987 pipeline1987 force-pushed the feat/agent-studio-surface-thread-depth-error branch from 4010acd to 9e208ee Compare April 13, 2026 17:41
@pipeline1987 pipeline1987 force-pushed the feat/agent-studio-surface-thread-depth-error branch from 9e208ee to c7573cd Compare April 13, 2026 17:48
@pipeline1987 pipeline1987 force-pushed the feat/agent-studio-surface-thread-depth-error branch from 57b202b to f0a54fa Compare April 13, 2026 20:50
@pipeline1987 pipeline1987 merged commit 6addb3e into main Apr 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants