Skip to content

Feat: show agent context attachments - #76

Open
moonlight16 wants to merge 1 commit into
rossoctl:mainfrom
moonlight16:agent/report-attached-contexts
Open

Feat: show agent context attachments#76
moonlight16 wants to merge 1 commit into
rossoctl:mainfrom
moonlight16:agent/report-attached-contexts

Conversation

@moonlight16

Copy link
Copy Markdown
Member

Summary

Display attached context resources in rossoctl agents get and improve the human-readable output of rossoctl context get.

Agent details

When the server returns context attachment metadata, human output now includes a Contexts section showing:

  • Context name
  • Type
  • Mount path
  • Access mode
  • Backing PVC claim

--json preserves the additive contexts field.

Older servers and agents without recorded context metadata continue to work without displaying the section.

Context details

Replace the terse single-line context get output with labeled sections:

  • Context Information
  • Storage
  • Attachment
Context Information
  Name:       research
  Namespace:  team1
  Type:       workspace
  Status:     ready

Storage
  Backend:        pvc
  Size:           1Gi
  Access Mode:    ReadWriteOnce
  Storage Class:  <default>

Attachment
  Kind:   pvc
  Claim:  context-research

Validation

  • CLI command and API model tests pass.
  • Live-tested human and JSON agent output against the updated Rosso backend.
  • Verified labeled context get output against a live context.
  • Verified agents without contexts remain compatible.

Dependency

Requires rossoctl/rossoctl#2447 to populate context attachment metadata. The CLI remains backward-compatible with older servers.

Signed-off-by: Jeremy Cohn <Jeremy.Cohn@ibm.com>
@moonlight16
moonlight16 requested a review from esnible August 20, 2026 20:18
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