Skip to content

Fix SME chat auth and preserve draft session state#379

Merged
BunsDev merged 1 commit intomainfrom
okcode/debug-sme-chat-auth
Apr 9, 2026
Merged

Fix SME chat auth and preserve draft session state#379
BunsDev merged 1 commit intomainfrom
okcode/debug-sme-chat-auth

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Apr 9, 2026

Summary

  • Resolve SME chat Anthropic auth from persisted project environment variables before falling back to process env.
  • Avoid persisting speculative assistant/user messages when auth is missing, and surface a clearer auth error.
  • Preserve draft threads and terminal session state across project switches by centralizing draft/thread/session controllers in the web app.
  • Add coverage for auth resolution, SME chat send behavior, draft persistence, sidebar/thread handling, and terminal session lifecycle.
  • Add logging for orchestration snapshot rebuild timing and sizes to aid performance debugging.

Testing

  • bun fmt
  • bun lint
  • bun typecheck
  • Not run: bun run test

- Read SME Anthropic credentials from saved environment variables before sending
- Avoid persisting placeholder messages when auth is missing
- Add coverage for persisted credentials and auth failure handling
@github-actions github-actions Bot added size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 9, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 9, 2026 8:06pm
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 9, 2026 8:06pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant