This commit is contained in:
1 parent
92724f1509
commit
99fb86471e
4 files changed
+15
-18
No files matched your search
@@ -272,18 +272,11 @@ export function HermesMobileWorkspace({ mode = "full" }: { mode?: "full" | "list
|
||||
</View>
|
||||
</ScrollView>
|
||||
)}
|
||||
<View className="flex-row gap-2">
|
||||
{mode === "full" && selection && (
|
||||
{mode === "full" && selection && (
|
||||
<View className="flex-row gap-2">
|
||||
<Action label="Sessions" onPress={() => setSelection(null)} />
|
||||
)}
|
||||
{(mode !== "full" || Platform.OS !== "android") && (
|
||||
<Action
|
||||
label={busy ? "Starting Hermes…" : "New task"}
|
||||
disabled={!connection || busy}
|
||||
onPress={() => void create()}
|
||||
/>
|
||||
)}
|
||||
</View>
|
||||
</View>
|
||||
)}
|
||||
{error && <ErrorDetail message={error} />}
|
||||
</View>
|
||||
)}
|
||||
@@ -438,10 +431,7 @@ function HermesSessionList({ connection }: { connection: HermesConnection }) {
|
||||
className={inputClass}
|
||||
/>
|
||||
{AsyncResult.isFailure(result) && (
|
||||
<>
|
||||
<ErrorDetail message={prettyHermesCause(result.cause)} />
|
||||
<HermesLogin connection={connection} onSuccess={() => registry.refresh(query)} />
|
||||
</>
|
||||
<ErrorDetail message={prettyHermesCause(result.cause)} />
|
||||
)}
|
||||
{error && <ErrorDetail message={error} />}
|
||||
</View>
|
||||
@@ -450,7 +440,7 @@ function HermesSessionList({ connection }: { connection: HermesConnection }) {
|
||||
<Text className="py-5 text-sm text-muted-foreground">
|
||||
{AsyncResult.isInitial(result)
|
||||
? "Loading sessions…"
|
||||
: "No Hermes sessions. Use New task to start chatting."}
|
||||
: "No Hermes sessions. Use New chat to start chatting."}
|
||||
</Text>
|
||||
}
|
||||
renderItem={({ item, index }) => (
|
||||
|
||||
@@ -571,7 +571,11 @@ function AdaptiveWorkspaceLayoutContent(
|
||||
<View className="flex-1" style={{ width: layout.listPaneWidth }}>
|
||||
<ConversationTabs topInset />
|
||||
{conversationSource === "hermes" ? (
|
||||
<HermesMobileWorkspace mode="list" />
|
||||
<AndroidHomeFabLayout
|
||||
onStartNewTask={() => requestHermesSession((value) => value + 1)}
|
||||
>
|
||||
<HermesMobileWorkspace mode="list" />
|
||||
</AndroidHomeFabLayout>
|
||||
) : (
|
||||
<AndroidHomeFabLayout onStartNewTask={handleStartNewTask}>
|
||||
<ThreadNavigationSidebar
|
||||
|
||||
@@ -19,6 +19,9 @@ describe("native Hermes presentation", () => {
|
||||
expect(hermesErrorMessage("Error: Unknown request tag: hermes.write")).toContain(
|
||||
"Update and restart the T3 desktop app or server",
|
||||
);
|
||||
expect(hermesErrorMessage("Unknown request tag: hermes.read")).toContain(
|
||||
"Update and restart the T3 desktop app or server",
|
||||
);
|
||||
});
|
||||
it("merges overlapping transcript pages with stable message identities", () => {
|
||||
const older = hermesMessages({
|
||||
|
||||
@@ -46,7 +46,7 @@ export function hermesPretty(value: unknown): string {
|
||||
}
|
||||
|
||||
export function hermesErrorMessage(message: string): string {
|
||||
if (/Unknown request tag: hermes\.(?:read|write|events)/i.test(message)) {
|
||||
if (/unknown request tag:\s*hermes\.(?:read|write|events)/i.test(message)) {
|
||||
return "This T3 host is too old for native Hermes controls. Update and restart the T3 desktop app or server on the connected machine, then try again.";
|
||||
}
|
||||
return message;
|
||||
|
||||
Reference in new issue
Block a user