Skip to content

Read the ticket body from SuperOps conversations when the ticket has none - #7

Merged
AshMT merged 1 commit into
mainfrom
claude/fervent-gates-vkhqj9
Sep 23, 2026
Merged

AshMT merged 1 commit into
mainfrom
claude/fervent-gates-vkhqj9

Conversation

@AshMT

@AshMT AshMT commented Sep 23, 2026

Copy link
Copy Markdown
Owner

On a real SuperOps instance the probe found no body field on the ticket (none of description, ticketBody, body, details, content), so every ticket was classified on its subject line alone. SuperOps keeps the requester's original message in the ticket's conversation thread rather than on the ticket.

Changes

The probe now looks, in order, for:

  • a scalar body field by a known name, then any scalar whose name says description or body;
  • a body held inside an object, selected as description { content };
  • a per-ticket conversation query (getTicketConversationList and similar), returning entries directly or wrapped, with a text and a time field.

With a conversation query, Swoop reads the earliest entry (the message that opened the ticket) as text. A failed lookup leaves the ticket as it was.

When nothing is found, the warning lists the ticket's fields, and Diagnostics shows them. Settings, Setup and Diagnostics show where the body comes from. The capabilities version is bumped, so existing installs re-probe on their next poll.

Testing

  • New probe tests: fuzzy name, object body, conversation list (direct and wrapped), ticket body preferred over conversations, and the warning listing the ticket's fields.
  • New fetch tests: earliest conversation entry taken and HTML stripped; nested body read; a failed conversation query leaves the ticket unchanged.
  • Lint, typecheck, 391 backend and 9 frontend tests pass locally.
  • Not yet confirmed against the real SuperOps schema; the Diagnostics field list will show the gap if the query differs.

🤖 Generated with Claude Code

https://claude.ai/code/session_017Q4siuyiAoEj7Qwd4r6Fkv


Generated by Claude Code

…none

On a real SuperOps instance the probe found no body field on the ticket,
so every ticket was classified on its subject line alone. SuperOps keeps
the requester's original message in the ticket's conversation thread
rather than on the ticket.

The probe now looks, in order, for:
- a scalar body field by a known name, then any scalar whose name says
  description or body;
- a body held inside an object, selected as `description { content }`;
- a per-ticket conversation query (getTicketConversationList and similar),
  returning entries directly or wrapped, with a text and a time field.

With a conversation query, Swoop reads the earliest entry — the message
that opened the ticket — as text. A failed lookup leaves the ticket as it
was. When nothing is found, the warning now lists the ticket's fields, and
Diagnostics shows them, so the next gap can be closed from a screenshot.

The capabilities version is bumped so existing installs re-probe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Q4siuyiAoEj7Qwd4r6Fkv
@AshMT
AshMT merged commit 3192519 into main Sep 23, 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.

2 participants