Skip to content

Fix unreadable Sessions label column - #90367

Closed
toruvieI wants to merge 1 commit into
openclaw:mainfrom
toruvieI:fix-sessions-label-column
Closed

toruvieI wants to merge 1 commit into
openclaw:mainfrom
toruvieI:fix-sessions-label-column

Conversation

@toruvieI

@toruvieI toruvieI commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • give the Sessions table Label column an explicit, text-sized width instead of letting the browser table algorithm squeeze it down
  • move the label input's inline styling into CSS and size it in ch, with room for padding/border
  • keep the existing responsive behavior intact; this does not touch layout.mobile.css because the table already hides low-priority columns at <= 900px

Problem

The current Control UI Sessions table can make the Label column effectively unreadable. In the reporter screenshot, the label input is squeezed to only a few visible characters, so the column is present but not practically usable.

This happens because the column has no dedicated width/min-width while the table is dense and uses the browser's default table layout. The input also had only an inline max-width: 140px, which caps it but does not reserve useful space for the column.

Fix

This patch adds a dedicated session-label-col class to the Label header/cells and a session-label-input class for the input.

The sizing is character-based:

  • minimum column/input room: about 8 label characters plus input chrome
  • normal/maximum input room: about 16 label characters plus input chrome
  • column width uses clamp(...) so it can breathe on wider tables without forcing an additional mobile-specific layout

I intentionally did not change layout.mobile.css: below 900px the table is already in the mode where cramming more columns in makes the UI worse, not better.

Validation

  • git diff --check
  • npm exec --yes --package=oxfmt -- oxfmt --check ui/src/ui/views/sessions.ts ui/src/styles/components.css
  • npm exec --yes [email protected] -- oxlint ui/src/ui/views/sessions.ts

npm run ui:build was attempted, but this local checkout does not have UI dependencies installed and the wrapper exited before producing build output.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 4, 2026
@clawsweeper

clawsweeper Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 26, 2026, 1:16 AM ET / 05:16 UTC.

Summary
The PR adds Sessions-table Label column/cell classes and moves the inline label input sizing into scoped CSS with character-based min/max widths.

PR surface: Source +16. Total +16 across 2 files.

Reproducibility: yes. at source level: current main renders the Label column without a dedicated width hook and uses an inline input max-width, matching the reporter and contributor screenshots. I did not run a live browser repro in this read-only pass.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: serialized state: ui/src/ui/views/sessions.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #86152
Summary: The linked issue is the canonical broader Sessions table column-width report, and this PR is a narrow candidate fix for its unreadable Label-column subset.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Run exact-head UI build or browser layout validation before merge if maintainers want proof beyond the attached screenshots.

Risk before merge

  • [P1] The linked issue also requests draggable and possibly persisted table-column resizing, so this PR should be treated only as the narrow Label-column readability mitigation.
  • [P1] The contributor could not run the local UI build, and the live GitHub check rollup is currently unstable; I did not find a diff-local bug, but required checks or exact-head browser validation still need to gate merge.

Maintainer options:

  1. Decide the mitigation before merge
    Land the narrow readable-Label-column mitigation after ordinary exact-head validation, and keep draggable or persisted column resizing tracked in [Bug]: Sessions table column widths not resizable; Label column too narrow for inline input fields #86152 as a separate UI product decision.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] The branch already contains the narrow fix; the remaining action is maintainer review, required-check gating, and optional exact-head browser validation rather than automated repair.

Security
Cleared: The diff only changes Control UI markup classes and CSS sizing, with no dependency, workflow, secret, package-script, or supply-chain surface changes.

Review details

Best possible solution:

Land the narrow readable-Label-column mitigation after ordinary exact-head validation, and keep draggable or persisted column resizing tracked in #86152 as a separate UI product decision.

Do we have a high-confidence way to reproduce the issue?

Yes, at source level: current main renders the Label column without a dedicated width hook and uses an inline input max-width, matching the reporter and contributor screenshots. I did not run a live browser repro in this read-only pass.

Is this the best way to solve the issue?

Yes for this PR's narrow bug fix: scoped Label column/cell classes plus CSS input sizing are the smallest maintainable repair for the unreadable inline editor. No for the entire linked issue, because draggable or persisted column resizing is broader product work that should remain separate unless maintainers sponsor it.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 751a6c23f098.

Label changes

Label justifications:

  • P3: This is a small Control UI readability fix with limited runtime blast radius and no config, auth, data-model, or message-delivery impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The June 5 before/after screenshots directly show the Sessions Label input changing from squeezed to readable after the patch.
  • proof: sufficient: Contributor real behavior proof is sufficient. The June 5 before/after screenshots directly show the Sessions Label input changing from squeezed to readable after the patch.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The June 5 before/after screenshots directly show the Sessions Label input changing from squeezed to readable after the patch.
Evidence reviewed

PR surface:

Source +16. Total +16 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 2 19 3 +16
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 19 3 +16

Acceptance criteria:

  • [P1] git diff --check.
  • [P1] pnpm exec oxfmt --check --threads=1 ui/src/ui/views/sessions.ts ui/src/styles/components.css.
  • [P1] pnpm exec oxlint ui/src/ui/views/sessions.ts.
  • [P1] browser or UI build validation for the Sessions table at desktop width.

What I checked:

  • Repository policy read: Root AGENTS.md and ui/AGENTS.md were read fully; the relevant guidance is high-confidence PR review plus UI-scoped policy, with no UI i18n constraint for this CSS/layout-only change. (ui/AGENTS.md:1, 751a6c23f098)
  • Current main source gap: Current main renders the Label header as a plain table header and the Label cell as a plain table cell with only an inline input max-width, so it has no Label-specific column width reservation. (ui/src/ui/views/sessions.ts:720, 751a6c23f098)
  • Current main CSS gap: The Sessions table CSS sets the table min-width and nowrap row cells plus adjacent fixed column sizing, but has no session-label-col or session-label-input rule. (ui/src/styles/components.css:2777, 751a6c23f098)
  • Responsive context: Mobile CSS already hides the Label column at max-width 900px, supporting the PR's choice to keep this as a desktop/table-width repair rather than add a mobile breakpoint. (ui/src/styles/layout.mobile.css:924, 751a6c23f098)
  • PR diff targets the gap: The branch adds session-label-col to the Label header and cell, adds session-label-input to the input, and moves the input chrome/sizing into CSS without changing the patch handler. (ui/src/ui/views/sessions.ts:727, 9fea058c9381)
  • PR CSS reserves readable input space: The branch adds a ch-based min/width clamp for the Label column and min/max ch-based sizing for the input. (ui/src/styles/components.css:2754, 9fea058c9381)

Likely related people:

  • bradleypriest: Commit 51f1f23 added the editable Sessions Label input and sessions.patch label path used by this table column. (role: introduced label editing; confidence: high; commits: 51f1f2323508; files: ui/src/ui/views/sessions.ts, ui/src/ui/controllers/sessions.ts)
  • BunsDev: Commit 5069060 changed the Sessions table layout surface, including status sizing, nowrap behavior, responsive behavior, and browser layout coverage adjacent to this issue. (role: recent Sessions table layout contributor; confidence: high; commits: 50690605bdb5; files: ui/src/ui/views/sessions.ts, ui/src/styles/components.css, ui/src/styles/layout.mobile.css)
  • benjipeng: Commit 989ee21 worked on Sessions table collapse behavior at narrow widths, with BunsDev recorded as reviewer/co-author in the commit metadata. (role: adjacent responsive table contributor; confidence: medium; commits: 989ee21b2414; files: ui/src/styles/components.css)
  • vincentkoc: Current shallow blame attributes the relevant Sessions table markup and CSS lines to the latest grafted source commit; this is useful for current-source routing but weaker than the feature-history owners. (role: recent current-source contributor; confidence: low; commits: 497d53d821e6; files: ui/src/ui/views/sessions.ts, ui/src/styles/components.css, ui/src/styles/layout.mobile.css)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 4, 2026
@toruvieI

toruvieI commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Providing proof after live local changes.

Before the change:
Screenshot 2026-06-05 at 10 14 11

After the change:
Screenshot 2026-06-05 at 15 08 43

Notice how label field is now usable.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 5, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label Jun 5, 2026
@toruvieI

toruvieI commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Gentle ping on this small UI fix. It is XS, mergeable, has screenshot/proof, and fixes a real readability papercut in the Sessions table. Seems low-risk and ready for maintainer review.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added stale Marked as stale due to inactivity triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jul 15, 2026
@toruvieI

Copy link
Copy Markdown
Contributor Author

Update after checking against v2026.7.1: this PR no longer has a meaningful clean rebase target.

The old Sessions table surface this patch touched (ui/src/ui/views/sessions.ts plus the inline Label column/input) was removed by the merged Sessions redesign in #100943. In v2026.7.1, labels now render as chips next to the session key, and the editable Label field moved into the per-row details drawer/Overrides section. That redesign explicitly addresses the truncated inline Label input problem this PR was narrowly fixing.

So I am not force-pushing an empty/no-op rebase just to reset stale state. This PR should be treated as superseded by #100943 / v2026.7.1 for the Label-column readability part of #86152. The broader draggable/resizable columns product request, if still desired, remains a separate decision under #86152.

@clawsweeper

clawsweeper Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: Fix unreadable Sessions label column This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Jul 17, 2026
@steipete

Copy link
Copy Markdown
Contributor

Closing per ClawSweeper review verdict duplicate_or_superseded (decision packet 2026-07-16T18:59:54.158Z). This item was part of the audited close backlog (openclaw/clawsweeper#920) stranded by an apply-lane defect, drained manually after re-verification. If this is wrong, reopen and ClawSweeper will re-review.

@steipete steipete closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants