Skip to content

Conversation

@adolago
Copy link
Owner

@adolago adolago commented Jan 19, 2026

Summary

Previously when the OAuth callback failed, the dialog would close silently without informing the user of the error. Now shows an error toast with a helpful message.

Changes

  • Added error toast notification when provider OAuth callback fails
  • Removed TODO comment that was marking this missing functionality

Testing

  • Typecheck passes for the app package
  • The toast follows the same pattern used elsewhere in the codebase

adolago and others added 11 commits January 17, 2026 20:52
- Add image compression when clipboard images exceed 4MB (API limit is 5MB)
- Use ImageMagick for progressive compression (quality 85→30, resize 100%→25%)
- Convert oversized PNGs to optimized JPEGs
- Graceful fallback if ImageMagick unavailable

fix(provider): allow instructions param for Codex API

- Add "instructions" to OpenAI supported params whitelist
- Fixes "Instructions are required" error with gpt-5.2-codex

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Previously when the OAuth callback failed, the dialog would close
silently without informing the user of the error. Now shows an error
toast with a helpful message.

Resolves TODO comment in the code.
@github-actions
Copy link

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Copy link

@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: 14c39e5ff4

ℹ️ 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".

Comment on lines 20 to +21
Telegram:
- \`to\`: Numeric chat ID (from incoming message context)
- \`persona\`: Which bot to use - "stanley" (default) or "johny"
- to: Chat ID (numeric) or @username

Choose a reason for hiding this comment

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

P2 Badge Limit Telegram docs to numeric IDs or accept @username

These lines now advertise Telegram to as “Chat ID (numeric) or @username”, but the execution path still does parseInt(to, 10) and treats non‑numeric IDs as invalid. When a user follows this new guidance and supplies an @username, the tool returns “Invalid Telegram chat ID” and never calls /gateway/telegram/send. Either keep the description numeric‑only or accept string usernames and forward them to the gateway.

Useful? React with 👍 / 👎.

Comment on lines 280 to +281
Telegram:
- \`to\`: Numeric chat ID (from incoming message context)
- \`persona\`: Which bot to use - "stanley" (default) or "johny"
- \`to\`: Chat ID (numeric) or @username

Choose a reason for hiding this comment

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

P2 Badge Align Telegram description with numeric-only behavior

This description now claims Telegram to can be a numeric ID or @username, but the implementation below still parses to with parseInt and rejects non‑numeric values. Users following the new guidance will hit the “Invalid Telegram chat ID” path and the message won’t be sent. Either update the docs back to numeric‑only or accept string usernames and pass them through to the gateway.

Useful? React with 👍 / 👎.

@adolago adolago merged commit 02c6d0f into dev Jan 19, 2026
4 of 9 checks passed
@adolago adolago deleted the fix/oauth-callback-error-toast branch January 19, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants