Skip to content

Code review: GAS translation provider and surrounding infrastructure - #3

Closed
yoima-jp with Copilot wants to merge 1 commit into
codex/gas-testfrom
copilot/sub-pr-2
Closed

Code review: GAS translation provider and surrounding infrastructure#3
yoima-jp with Copilot wants to merge 1 commit into
codex/gas-testfrom
copilot/sub-pr-2

Conversation

Copilot AI commented Mar 9, 2026

Copy link
Copy Markdown

Reviewed the GAS translation failure investigation branch. No code defects were found; this PR documents the review outcome.

Findings

  • GasTranslationProvider: Redirect handling correctly switches POST→GET on 301/302/303 while preserving POST for 307/308, matching GAS /exec redirect behavior. BOM and XSSI )]}' prefix stripping in normalizeJsonBody is correct for Google responses.
  • Detected language fallback: getString(root, "source") falls back to request.sourceLanguageHint() (always non-null "") when blank or "auto" — consistent with DeepLTranslationProvider, but detectedSourceLanguage in TranslationResult may be empty.
  • ChatglotConfig model constants: gpt-5.3-codex, gpt-5-nano, gemini-flash-latest, claude-haiku-4-5 appear to be placeholder/future model identifiers — worth validating against live APIs.
  • Error surfacing: ChatTranslationActions.exceptionally correctly unwraps CompletionException and posts error text to chat HUD.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Investigate gas translation failure logs Code review: GAS translation provider and surrounding infrastructure Mar 9, 2026
@yoima-jp yoima-jp closed this Mar 9, 2026
@yoima-jp
yoima-jp deleted the copilot/sub-pr-2 branch March 9, 2026 12:35
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