Skip to content

refactor: attachment output flow + timezone helpers#252

Merged
steipete merged 3 commits into
mainfrom
refactor/attachment-output
Feb 14, 2026
Merged

refactor: attachment output flow + timezone helpers#252
steipete merged 3 commits into
mainfrom
refactor/attachment-output

Conversation

@steipete

Copy link
Copy Markdown
Collaborator

Refactor only. No behavior changes intended.

  • Gmail attachment: unify dest resolution; split cache/fetch/write; atomic writes
  • Calendar: extract timezone helper funcs

Test: make ci

@steipete steipete merged commit 4bffa81 into main Feb 14, 2026
7 checks passed
@steipete steipete deleted the refactor/attachment-output branch February 14, 2026 13:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: e824cd83f6

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

if err := f.Close(); err != nil {
return err
}
return os.Rename(tmp, outPath)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve symlink targets when writing attachment files

Using os.Rename(tmp, outPath) here changes behavior for symlink outputs: when outPath is a symlink and a cache miss triggers a write, the rename replaces the symlink entry itself instead of updating the symlink target file. In practice, gmail attachment --out <symlink> will silently delete the link and leave the original target stale, whereas the previous os.WriteFile path followed symlinks; this is a user-visible regression for link-based download locations.

Useful? React with 👍 / 👎.

klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
* refactor(gmail): simplify attachment output + cache flow

* refactor(calendar): extract timezone helpers

* refactor(gmail): simplify attachment output + cache flow
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.

1 participant