Skip to content

fix(sessions): show a running session in amber in the all-projects list - #862

Merged
artempartos merged 3 commits into
AixleHQ:developfrom
sergey-tabb-dbp:fix/running-status-color
Nov 24, 2026
Merged

artempartos merged 3 commits into
AixleHQ:developfrom
sergey-tabb-dbp:fix/running-status-color

Conversation

@sergey-tabb-dbp

Copy link
Copy Markdown
Contributor

Summary

On All projects → Sessions & Runs a running session showed a green RUNNING tag, while inside a project a running row read amber. Both now read amber.

A session in ready is labelled "Running", but ready maps to the success tone in STATE_TONES. Runners and integrations use ready to mean healthy, so it can't change there. The company feed (SessionFeedTable) passed only state to StatusTag, so a running session came out green like a finished one.

Changes:

  • New sessionStatusTone(state) in shared/ui/StatusBadge.tsx: maps ready → running and resolves everything else through statusTone.
  • Used on every session surface: the company sessions feed, project Sessions & Runs rows and their child sessions, the session detail header and launch screen (DetailHeader gets an optional statusTone prop), and Profile → Usage (replaces its inline ready ? 'running' check).

Related issues

None.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / chore
  • Breaking change

How was this tested?

  • Added app/frontend/shared/ui/StatusBadge.test.ts: a ready session resolves to the same tone as a running workflow run, ready stays success outside sessions, and other session states are unchanged.
  • Changed files pass Prettier.
  • make check_all / lint_check_all were not run locally; relying on CI for tests, eslint, tsc and fsd.

Checklist

  • I read CONTRIBUTING.md.
  • All my commits are signed off for the DCO (git commit -s).
  • I have signed (or will sign) the CLA when the bot prompts me — or my
    organization has executed the Corporate CLA.
  • make check_all passes locally (tests, rubocop, brakeman, eslint, typescript).
  • I added/updated tests where it makes sense.
  • I updated documentation where it makes sense.
  • User-visible changes have an entry under [Unreleased] in CHANGELOG.md.
  • My commits use clear, descriptive messages.
Screenshot 2026-11-23 at 7 02 37 PM Screenshot 2026-11-23 at 7 02 25 PM

A session in `ready` is labelled "Running", but `ready` resolves to the
success tone in the shared map (runners and integrations use it to mean
healthy), so the company sessions feed showed it green while a project's
running workflow run read amber. Session surfaces now resolve through
sessionStatusTone, which maps `ready` to the running tone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Sergey Tabb <[email protected]>
@sergey-tabb-dbp

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

artempartos and others added 2 commits November 24, 2026 12:32
…-color

* origin/develop:
  feat(workflows): change a workflow that is in use through a draft (AixleHQ#837)
  feat(sessions): keep a session's HTTP log to the agent's own hosts and the bodies usage needs (AixleHQ#861)
  feat(companies): put the company in every company URL (AixleHQ#864)

Signed-off-by: Artem Petrov <[email protected]>

# Conflicts:
#	CHANGELOG.md
Passing sessionStatusTone at every call site left the next session
surface free to forget it and read green again. StatusTag is the
Sessions & Runs tag, and among what it shows only a terminal session
carries `ready`, so it resolves the tone itself and the call sites go
back to passing the state alone. Profile -> Usage draws a StatusBadge,
not a StatusTag, so it keeps calling sessionStatusTone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
@artempartos

Copy link
Copy Markdown
Contributor

Thanks — I pushed two commits on top so this can merge today:

  • Merged develop and resolved the CHANGELOG.md conflict. The entry now names the project list too: on develop, SessionsRunsPage passed no tone either, so a ready session read green inside a project as well.
  • StatusTag resolves the tone itself (tone ?? sessionStatusTone(state)) instead of every call site passing sessionStatusTone. Six call sites meant the next session surface could forget it and read green again. Among what StatusTag shows, only a terminal session carries ready; runners draw StatusBadge. So SessionFeedTable, SessionsRunsPage, SessionShowContent and DetailHeader (its new statusTone prop) are back to what they were, and the re-export from shared/ui/sessions/index.ts is gone. Profile → Usage draws a StatusBadge, so it keeps calling sessionStatusTone.

Left alone: the Aixle Builder pages show ready in a StatusBadge labelled "Ready", not "Running", so green still matches the label there.

@artempartos
artempartos merged commit 1bcc998 into AixleHQ:develop Nov 24, 2026
18 checks passed
artempartos added a commit to sergey-tabb-dbp/flow that referenced this pull request Nov 24, 2026
…illions

* origin/develop:
  fix(sessions): show a running session in amber in the all-projects list (AixleHQ#862)

Signed-off-by: Artem Petrov <[email protected]>

# Conflicts:
#	CHANGELOG.md
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