Skip to content

Feature: add option to hide AI Rewrite button - #186

Open
mvsrcdst wants to merge 1 commit into
Swiftgram:masterfrom
mvsrcdst:feature/ai-rewrite
Open

Feature: add option to hide AI Rewrite button#186
mvsrcdst wants to merge 1 commit into
Swiftgram:masterfrom
mvsrcdst:feature/ai-rewrite

Conversation

@mvsrcdst

@mvsrcdst mvsrcdst commented Jul 24, 2026

Copy link
Copy Markdown

Closes #173

Summary

  • New option toggle in Settings -> Other: disableAIChatButton (button shown by default)
  • Gates the AI button in ChatTextInputPanelNode: both the pill-visibility trigger and the actual attachmentAIButton creation/display, behind !SGSimpleSettings.shared.disableAIChatButton
  • String: Settings.AIChatButton = "AI Rewrite Button"

Screenshots

Option toggle "AI Rewrite Button" in Settings -> Other image
Toggle on image
Toggle off image

Testing

  • Tested on iOS Simulator 18.6/26.5
  • Toggle off: AI Rewrite button disappears from chat input panel
  • Toggle on: button reappears, width calc still correct
@mvsrcdst
mvsrcdst marked this pull request as draft July 24, 2026 14:15
@mvsrcdst

mvsrcdst commented Jul 24, 2026

Copy link
Copy Markdown
Author

Adapted for release 12.9

@mvsrcdst
mvsrcdst force-pushed the feature/ai-rewrite branch from 1a0873d to 62d962e Compare August 4, 2026 14:52
@mvsrcdst
mvsrcdst marked this pull request as ready for review August 4, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant