Skip to content

[codex] add Google Sites support#574

Merged
steipete merged 4 commits intomainfrom
codex/add-google-sites-support
May 10, 2026
Merged

[codex] add Google Sites support#574
steipete merged 4 commits intomainfrom
codex/add-google-sites-support

Conversation

@thewilloftheshadow
Copy link
Copy Markdown
Member

Summary

  • Adds a Drive-backed sites command group with list, search, get, and url commands for New Google Sites.
  • Adds sites as an auth service using Drive scopes, including readonly/drive-scope handling.
  • Teaches shared Drive/open helpers to recognize Google Sites MIME type and editor URLs, and updates generated command/auth docs plus safety profiles.

Validation

  • PATH="/Users/shadow/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.0.darwin-arm64/bin:$PATH" make test
  • PATH="/Users/shadow/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/bin:/Users/shadow/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.0.darwin-arm64/bin:$PATH" make docs-check

@steipete steipete marked this pull request as ready for review May 10, 2026 08:56
@steipete steipete merged commit 806d1b0 into main May 10, 2026
8 checks passed
@steipete steipete deleted the codex/add-google-sites-support branch May 10, 2026 08:56
@steipete
Copy link
Copy Markdown
Collaborator

Landed in 806d1b0. I fixed lint, added Sites URL MIME validation, merged current main, and kept the changelog credit. Thanks @thewilloftheshadow.

Copy link
Copy Markdown

@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: b0ee64d0d1

ℹ️ 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 +223 to +224
case driveMimeGoogleSite:
return mimeHTML
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject Google Sites in default Drive download path

When downloading a Google Site without --format, the code now defaults to text/html and proceeds to Files.Export, even though the same commit explicitly treats Sites exports as unsupported in driveExportMimeTypeForFormat. This makes gog drive download <siteId> fail later with a generic API error instead of the intended actionable message, and it creates inconsistent behavior between implicit/default and explicit format handling.

Useful? React with 👍 / 👎.

Comment thread internal/cmd/open.go
if id == "" {
return input
}
return fmt.Sprintf("https://sites.google.com/d/%s/edit", id)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid mangling non-editor Sites URLs in open auto mode

This branch assumes any sites.google.com input has a Drive ID, but normalizeGoogleID only extracts IDs from /d/<id>/... URLs and otherwise returns the original string. For published/classic Sites URLs (for example .../site/<name>/...), id becomes the full URL and this produces an invalid editor URL like https://sites.google.com/d/https://.../edit instead of preserving the input.

Useful? React with 👍 / 👎.

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