Skip to content

Remove dead proxyToBackend layer from Google Docs add-on#455

Open
kcarnold wants to merge 1 commit into
mainfrom
claude/google-docs-dead-code-grn2s0
Open

Remove dead proxyToBackend layer from Google Docs add-on#455
kcarnold wants to merge 1 commit into
mainfrom
claude/google-docs-dead-code-grn2s0

Conversation

@kcarnold

@kcarnold kcarnold commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

The Apps Script layer used to proxy backend calls (proxyToBackend ->
getBackendUrl via UrlFetchApp), exposed to the sidebar as sendChatMessage,
analyzeText, and logEvent. The React frontend now calls the Python backend
directly and uses the Apps Script bridge only for document operations, so
these functions were dead code.

  • Code.gs: delete proxyToBackend, getBackendUrl, logEvent, sendChatMessage,
    analyzeText and their section banners; update the file header.
  • sidebar.html: remove the dead sendChatMessage/analyzeText/logEvent bridge
    wrappers.
  • README.md: drop the proxy/ngrok mental model from the architecture diagram,
    file list, troubleshooting, and OAuth scopes; clarify that the dev sidebar
    loads the React bundle directly from localhost:3001 (no ngrok). With the only
    UrlFetchApp call gone, script.external_request is no longer requested.

https://claude.ai/code/session_012LChs9UKmRbjgvYyEVM3Bq

The Apps Script layer used to proxy backend calls (proxyToBackend ->
getBackendUrl via UrlFetchApp), exposed to the sidebar as sendChatMessage,
analyzeText, and logEvent. The React frontend now calls the Python backend
directly and uses the Apps Script bridge only for document operations, so
these functions were dead code.

- Code.gs: delete proxyToBackend, getBackendUrl, logEvent, sendChatMessage,
  analyzeText and their section banners; update the file header.
- sidebar.html: remove the dead sendChatMessage/analyzeText/logEvent bridge
  wrappers.
- README.md: drop the proxy/ngrok mental model from the architecture diagram,
  file list, troubleshooting, and OAuth scopes; clarify that the dev sidebar
  loads the React bundle directly from localhost:3001 (no ngrok). With the only
  UrlFetchApp call gone, script.external_request is no longer requested.

https://claude.ai/code/session_012LChs9UKmRbjgvYyEVM3Bq
@kcarnold kcarnold requested a review from MaryChen68 June 9, 2026 18:32
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