Skip to content

fix(messaging): preserve keys matching non-files - #175

Merged
riba2534 merged 1 commit into
mainfrom
codex/fix-media-key-directory
Jul 30, 2026
Merged

riba2534 merged 1 commit into
mainfrom
codex/fix-media-key-directory

Conversation

@riba2534

Copy link
Copy Markdown
Owner

变更

  • 仅普通文件可以优先于 img_ / file_ 资源 key 前缀
  • 目录、FIFO 等非普通文件不再抢占同名飞书资源 key
  • 增加同名前缀目录的回归测试

根因

PR #174 使用 os.Stat 成功作为“本地媒体存在”的条件,目录等非普通文件也会满足,
导致极端情况下真实资源 key 被误判为本地媒体。

验证

  • go test ./...
  • go test -race ./cmd
  • go vet ./...
  • make check-skills
  • 真实编译产物在同名目录场景下不触发上传或本地文件错误

跟进 PR #174 的 Codex P3 Review。

@riba2534

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: b827f7760b

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

@riba2534
riba2534 merged commit 126db5c into main Jul 30, 2026
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