Repository navigation
Release Alysis Code 0.18.0 - #58
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce45c3397b
ℹ️ 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".
| columns = ", ".join( | ||
| f"{name} {kind}" for name, kind in zip(table.columns, table.types, strict=True) | ||
| ) | ||
| database.execute(f"CREATE TABLE {table.name} ({columns})") |
There was a problem hiding this comment.
Quote generated SQL table and column identifiers
When a file is named Order.csv or contains a header such as Order, Group, or Select, simple_name() leaves a reserved SQL keyword unchanged. The unquoted CREATE TABLE then raises sqlite3.OperationalError before the user's query runs, even if that query quotes its identifiers correctly. This prevents otherwise valid Library tables from being queried. Quote the generated identifiers consistently in both table creation and insertion.
Useful? React with 👍 / 👎.
| for row in sheet.iter_rows(values_only=True): | ||
| self.token.throw_if_cancelled() | ||
| rows.append([_cell(value) for value in row]) | ||
| rows = _trimmed(rows) |
There was a problem hiding this comment.
Bound workbook expansion before accumulating worksheet rows
For an XLSX with a large, sparse worksheet dimension, this loop materializes every cell in that rectangle before _trimmed() runs or call() checks MAX_CELLS. A small workbook with formatting or a cell far down and to the right can therefore consume gigabytes of memory and terminate the bot service. The compressed/unpacked package limits do not bound the empty cells synthesized during worksheet iteration, and QUERY_SECONDS only applies later to SQL execution. Enforce a cell/dimension budget before and during workbook expansion.
Useful? React with 👍 / 👎.
| queued = db.execute( | ||
| "SELECT revision,sent_sha256,withdrawn_at FROM queued_messages WHERE task_id=?", | ||
| (row["id"],), | ||
| ).fetchone() | ||
| if queued is not None: | ||
| record["queued"] = dict(queued) |
There was a problem hiding this comment.
Preserve applied steering links when moving an owl
When moving an owl whose conversation includes an applied steering message, this export drops steer_target and steer_state; QueuedPart and the importer also omit them. At the destination, steered_turns() no longer associates that message with the turn it steered, so history treats it as a separate completed turn. Because it was created after the answering turn, it also becomes the latest non-withdrawn task, causing Store.regenerate() to reject regeneration of the actual latest reply. Carry the steering state through the move and remap its target to the imported task ID.
Useful? React with 👍 / 👎.
Alysis Code 0.18.0. See CHANGELOG.md for what changed.