Skip to content

fix: use local-assistant ID for /v1/ HTTP routes#5037

Merged
siddseethepalli merged 1 commit into
mainfrom
do/fix-self-assistant-id
Feb 19, 2026
Merged

fix: use local-assistant ID for /v1/ HTTP routes#5037
siddseethepalli merged 1 commit into
mainfrom
do/fix-self-assistant-id

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented Feb 19, 2026

Summary

  • The /v1/<endpoint> HTTP routes passed 'self' as the assistantId, but all IPC-created data (attachments, conversations) is stored with assistant_id = 'local-assistant'
  • This caused attachment lookups via /v1/attachments/:id to return 404, breaking lazy-load video playback
  • Changed the route to pass 'local-assistant' directly, matching the canonical ID used by the daemon session

🤖 Generated with Claude Code


Open with Devin

Co-Authored-By: Claude <noreply@anthropic.com>
@siddseethepalli siddseethepalli merged commit b1a9e16 into main Feb 19, 2026
@siddseethepalli siddseethepalli deleted the do/fix-self-assistant-id branch February 19, 2026 08:02
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7fac18422f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const newRouteMatch = path.match(/^\/v1\/(?!assistants\/)(.+)$/);
if (newRouteMatch) {
return this.dispatchEndpoint('self', newRouteMatch[1], req, url);
return this.dispatchEndpoint('local-assistant', newRouteMatch[1], req, url);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep assistant-less routes compatible with existing self data

Changing the assistant-less /v1/<endpoint> namespace from self to local-assistant breaks upgrades for any client that previously used these routes, because pre-existing conversation keys and attachments were stored under assistant_id='self' and downstream lookups require an exact assistantId match. After this change, those users will get empty message histories and 404 attachment fetches until they explicitly switch to legacy /v1/assistants/self/... endpoints, so this should include a migration or fallback read path to preserve existing data.

Useful? React with 👍 / 👎.

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.

1 participant