diff --git a/client/components/AIAccounts.tsx b/client/components/AIAccounts.tsx
index bc31021..308823c 100644
--- a/client/components/AIAccounts.tsx
+++ b/client/components/AIAccounts.tsx
@@ -7,6 +7,8 @@ interface ClaudeAccount {
status: string;
accountType: string;
lastUsedAt: string | null;
+ schedulable?: boolean;
+ stoppedReason?: string;
usage?: {
daily?: {
tokens: number;
@@ -39,6 +41,8 @@ interface OpenAIAccount {
status: string;
accountType: string;
lastUsedAt: string | null;
+ schedulable?: boolean;
+ stoppedReason?: string;
usage?: {
daily?: {
tokens: number;
@@ -253,9 +257,9 @@ export function AIAccounts({ apiKey }: AIAccountsProps) {
| Account |
Status |
- Daily Usage |
- Usage Windows |
- Last Used |
+ Daily Usage |
+ Usage Windows |
+ Last Used |
@@ -273,11 +277,36 @@ export function AIAccounts({ apiKey }: AIAccountsProps) {
-
- {account.status}
-
+
+
+ {account.status}
+
+ {account.schedulable === false && (
+
+
+ Not schedulable
+
+
+
+ {account.stoppedReason || 'Not schedulable'}
+
+
+ )}
+
|
-
+ |
{account.usage?.daily && (isClaudeAccount || account.usage.daily.requests > 0) ? (
{account.usage.daily.requests} reqs
@@ -287,7 +316,7 @@ export function AIAccounts({ apiKey }: AIAccountsProps) {
{isClaudeAccount ? 'No data' : 'No usage today'}
)}
|
-
+ |
{claudeAcc?.claudeUsage ? (
{claudeAcc.claudeUsage.fiveHour && (
@@ -333,7 +362,7 @@ export function AIAccounts({ apiKey }: AIAccountsProps) {
No data
)}
|
- {formatLastUsed(account.lastUsedAt)} |
+ {formatLastUsed(account.lastUsedAt)} |
);
})}
diff --git a/server/api-client.ts b/server/api-client.ts
index d16096b..d44287b 100644
--- a/server/api-client.ts
+++ b/server/api-client.ts
@@ -74,6 +74,8 @@ interface ClaudeAccount {
status: string;
accountType: string;
lastUsedAt: string | null;
+ schedulable?: boolean;
+ stoppedReason?: string;
usage?: {
daily?: {
tokens: number;
@@ -119,6 +121,8 @@ interface OpenAIAccount {
status: string;
accountType: string;
lastUsedAt: string | null;
+ schedulable?: boolean;
+ stoppedReason?: string;
usage?: {
daily?: {
tokens: number;
@@ -425,6 +429,8 @@ export class ApiClient {
status: acc.status,
accountType: acc.accountType,
lastUsedAt: acc.lastUsedAt,
+ schedulable: acc.schedulable,
+ stoppedReason: acc.stoppedReason ?? undefined,
usage: acc.usage ? {
daily: acc.usage.daily ? {
tokens: acc.usage.daily.tokens || 0,
@@ -473,6 +479,8 @@ export class ApiClient {
status: acc.status,
accountType: acc.accountType,
lastUsedAt: acc.lastUsedAt,
+ schedulable: acc.schedulable,
+ stoppedReason: acc.stoppedReason ?? undefined,
usage: acc.usage ? {
daily: acc.usage.daily ? {
tokens: acc.usage.daily.tokens || 0,