Skip to content

Download stored Cloud message media from CLI - #51

Merged
purpshell merged 7 commits into
devfrom
codex/oa08-history-media-cli
Oct 1, 2026
Merged

purpshell merged 7 commits into
devfrom
codex/oa08-history-media-cli

Conversation

@purpshell

@purpshell purpshell commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Adds polymorfa chat message media <conversation> <message> --session <number> --output <path> [--force] [--max-bytes], which streams a stored Official API message media copy (API PRs #333/#385, merged) to a file. It refuses to overwrite an existing file without --force, enforces a byte limit (default 32 MiB, the API's copy limit) before and during the write, and requires an enrolled HMS Number with messages:read and media:read.

Uses MessagingClient.chats.downloadMessageMediaStream from @polymorfa/sdk 0.1.0-dev.20261001124422 (pinned on CLI dev; from polymorfa/sdks #316).

  • API: unaffected; #333/#385 merged.
  • SDKs: consumes the published prerelease.
  • CLI: new command, README, test (encoded path, file contents, no overwrite without --force).
  • Docs: CLI README. Public Mintlify unchanged (HMS history is an enrolled beta).
  • Feature releases: no access change.

Verification (head e663a74): typecheck, lint, prettier, build, prod audit (0), full vitest 100 files / 952 passed.

@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

The included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 62 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 097b724a-4646-44c6-bf48-f949a0551600

📥 Commits

Reviewing files that changed from the base of the PR and between 9e3c289 and e663a74.

📒 Files selected for processing (5)
  • README.md
  • docs/command-research/history-media.md
  • src/commands/chat/message/media.ts
  • src/services/history.ts
  • test/commands/history.test.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@purpshell

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-26T21:48:19.486243Z a32c815 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 01548e45e5

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

@purpshell

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: a5e6adcf1b

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

@purpshell

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 2470241fff

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

@purpshell

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: a32c815c7f

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

@purpshell
purpshell changed the base branch from codex/oa17-marketing-status-cli to dev October 1, 2026 13:48
@purpshell

Copy link
Copy Markdown
Member Author

Local review (head e663a74; manual pass): existence check runs before any request; contentLength over the limit cancels the body before writing; writeStreamToFile enforces maxBytes for chunked responses and overwrite only with --force; errors map to conflict/configuration exits. Path segments are encoded by the SDK. Added a command test. No findings.

@purpshell
purpshell merged commit bf8fa0a into dev Oct 1, 2026
2 checks passed
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