mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
Align chat wording
This commit is contained in:
parent
4abd131a02
commit
79a67f828b
7 changed files with 7 additions and 7 deletions
|
|
@ -107,7 +107,7 @@ function lastAssistantMessage(items: ThreadItem[]): string | null {
|
|||
|
||||
export function namingPrompt(context: ThreadNamingContext): string {
|
||||
return [
|
||||
"Create a history title for the following Codex conversation.",
|
||||
"Create a thread title for the following Codex thread.",
|
||||
"",
|
||||
"Requirements:",
|
||||
"- First infer the main language of the user's initial request. This does not need to be strict; use the dominant language if mixed.",
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export function referencedThreadPrompt(thread: Thread, turns: ReferencedThreadTu
|
|||
return [
|
||||
...heading,
|
||||
"",
|
||||
"Reference conversation:",
|
||||
"Reference thread history:",
|
||||
...turns.flatMap((turn, index) => {
|
||||
const lines = [`Turn ${String(index + 1)}:`];
|
||||
if (turn.userText) lines.push(`User:\n${turn.userText}`);
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export const SLASH_COMMANDS = [
|
|||
},
|
||||
{ command: "/fork", usage: "/fork", argsKind: "none", detail: "Fork the active Codex thread." },
|
||||
{ command: "/rollback", usage: "/rollback", argsKind: "none", detail: "Roll back the latest turn and restore its prompt." },
|
||||
{ command: "/compact", usage: "/compact", argsKind: "none", detail: "Compact the current conversation context." },
|
||||
{ command: "/compact", usage: "/compact", argsKind: "none", detail: "Compact the current thread context." },
|
||||
{ command: "/archive", usage: "/archive <thread>", argsKind: "requiredThread", detail: "Archive the selected Codex thread." },
|
||||
{
|
||||
command: "/auto-review",
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ function HistoryBar({ loadingHistory, loadOlderTurns }: { loadingHistory: boolea
|
|||
}
|
||||
|
||||
function EmptyMessage(): ReactNode {
|
||||
return <div className="codex-panel__message codex-panel__message--system">Send a message to start a new thread.</div>;
|
||||
return <div className="codex-panel__message codex-panel__message--system">Send a message to start a conversation.</div>;
|
||||
}
|
||||
|
||||
function ActivityGroup({
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ describe("thread archive export", () => {
|
|||
|
||||
expect(output).toContain("続きです");
|
||||
expect(output).toContain("> Referenced: 参照元 (1/20 turns, thread-ref)");
|
||||
expect(output).not.toContain("Reference conversation:");
|
||||
expect(output).not.toContain("Reference thread history:");
|
||||
expect(output).not.toContain("元の依頼");
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ describe("thread item conversion preserves app-server semantics", () => {
|
|||
"Included turns: 2/20",
|
||||
"Included history: user input and final Codex responses only.",
|
||||
"",
|
||||
"Reference conversation:",
|
||||
"Reference thread history:",
|
||||
"",
|
||||
"Turn 1:",
|
||||
"User:",
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ describe("message stream block identity and message actions", () => {
|
|||
|
||||
const empty = expectPresent(parent.querySelector<HTMLElement>(".codex-panel__message--system"));
|
||||
expect(empty.classList.contains("codex-panel__message")).toBe(true);
|
||||
expect(empty.textContent).toBe("Send a message to start a new thread.");
|
||||
expect(empty.textContent).toBe("Send a message to start a conversation.");
|
||||
unmountReactRoot(parent);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue