Skip to content

character rm (Trash): review follow-ups from #1646 #1663

Done

Description

@ffroliva

Follow-ups from the review of #1646 (character rm moves a character to Trash on flow.google.com). None blocks the merge.

  1. Trash reply check takes the first rzMKMb frame. migrated_character.trash_character calls rpc_reply without an accept filter. If another rzMKMb echo arrives before the archive echo, the command raises a plain WireFormatError while Flow has already moved the character to Trash, and a re-run exits 11. Pass an accept= that matches the entity with the archive flag, or mark that drift next_action="reconcile" as the no-reply path does.
  2. CharacterNotFoundError lives in api/character.py. It is the only GFlowError subclass outside errors.py, so tests/test_problem_details_extensions.py sees it only when another test imports that module first. Move it to errors.py.
  3. The CLI calls the private client._trash_character behind noqa: SLF001 and a pyright ignore. Make it a public client method beside delete_characters (the facade fixture may need re-recording).
  4. MCP descriptions do not mention Trash. gflow_character_list and gflow_character_show descriptions do not say that trashed characters are omitted; agents read description=, not docs/MCP.md.
  5. list_characters docstring still says it returns all CHARACTER entities; on flow.google.com trashed ones are left out.
  6. The e2e restore step uses text selectors ("Restore all", the probe character's name) in tests/e2e/test_character_create_from_files_bdd.py. On a non-English profile the cleanup fails after the assertions pass and leaves the probe in Trash. Anchor it structurally if Flow's Trash page offers an anchor.

Activity

  1. ffroliva commented on Nov 30, 2026

    @ffroliva
    OwnerAuthor

    Items 3 (public trash_character) and 6 (the e2e restore step now anchors on the Trash tile's undo icon) were done by @rayw-lab in 6b85c30 and merged with #1646. Items 1, 2, 4 and 5 remain.

  2. ffroliva commented on Nov 30, 2026

    @ffroliva
    OwnerAuthor

    #1666 (merged) covers items 1, 4 and 5:

    • trash_character skips rzMKMb replies naming another character, and a reply for the requested character that does not confirm the archive is WireFormatError with next_action=reconcile and the Trash hint, never retried blindly. Whether Flow ever sends such a reply is unmeasured.
    • The gflow_character_list and gflow_character_show descriptions say that characters in Trash are omitted; the list_characters docstring is corrected.

    Items 3 and 6 were done in #1646. Item 2 (move CharacterNotFoundError to errors.py) is not done: errors.py is at the 2000-line size gate, which forbids growing it, so the move needs that module split first. Keeping this issue open for item 2 only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions