Skip to content

Add xlsx RPC stdio command#56

Open
nfcampos wants to merge 1 commit intomainfrom
nc/1may/rpc
Open

Add xlsx RPC stdio command#56
nfcampos wants to merge 1 commit intomainfrom
nc/1may/rpc

Conversation

@nfcampos
Copy link
Copy Markdown
Contributor

@nfcampos nfcampos commented May 2, 2026

No description provided.

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: 3c5881892f

ℹ️ 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 thread cmd/xlsx_rpc.go
Comment on lines +141 to +143
conn, err := dialRPCWebSocket(ctx, c, wsURL)
if err != nil {
return nil, err
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 Reupload workbook when initial RPC websocket dial gets 404

If the local cache points at a deleted remote file/revision, EnsureUploaded can return stale IDs and the first WebSocket handshake to /files/{id}/xlsx/ws will fail with HTTP 404. This path currently returns immediately, so witan xlsx rpc cannot start even though other files-backed commands recover by reuploading after not found. Add the same stale-cache fallback here (reupload and retry dial) so startup is resilient to stale cache entries.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nothing to action: for that specific “initial WebSocket dial gets 404 due to stale cache” issue, I don’t see anything to action in either repo right now.

Current behavior is:

witan-alfred: files-backed /xlsx/ws upgrades first, then session creation can emit FILE_NOT_FOUND and close 4404.
witan-cli: already handles that stale-cache path by reuploading, reconnecting, and replaying the first RPC line.

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