Self-hosted workflows for coding-agent delivery. Orchestrate CodeBuddy, Codex and Claude Code with scripts and human approval gates. Includes Local workflows for coding assistants.
JavaScript agent-orchestrationagentic-workflowai-agentsai-codingclaude-codecode-reviewcodebuddycodexcoding-agentscursordeveloper-toolshuman-on-the-loopllmmcpmulti-agentsdlcself-hostedsopworkflow-automationworkflow-engine
fix(chatbot): drop the filename bar under chat image attachments
roberttwange3f1cc0b31e4
diff --git a/chatbot/src/RichContent.jsx b/chatbot/src/RichContent.jsxindex c401bccd..d969bd2e 100644--- a/chatbot/src/RichContent.jsx+++ b/chatbot/src/RichContent.jsx@@ -36,8 +36,6 @@ import "./artifact-preview.css";const Check = (props) => <HarnessIcon name="check" {...props} />;const Copy = (props) => <HarnessIcon name="copy" {...props} />;const Download = (props) => <HarnessIcon name="download" {...props} />;-const Expand = (props) => <HarnessIcon name="preview-expand" {...props} />;-const Image = (props) => <HarnessIcon name="image" {...props} />;const ImageOff = (props) => <HarnessIcon name="image-off" {...props} />;const Refresh = (props) => <HarnessIcon name="refresh" {...props} />;const Spinner = (props) => <HarnessIcon name="spinner" {...props} />;@@ -368,7 +366,7 @@ export function RichContent({ message, assets = [], projectId = "" }) {}// Full-window viewer shared by chat images, artifact previews and SOP node-// files. Double-click an image (or its expand icon) to open; Esc closes.+// files. Double-click an image to open; Esc closes.export function ImageLightbox({ src, alt, onClose }) {useEffect(() => {const onKey = (e) => e.key === "Escape" && onClose();@@ -529,24 +527,6 @@ export function Attachment({ attachment, sessionId, onOpen }) {<span>{attachment.name}</span></>)}- {image ? (- <span className="image-caption">- <Image size={14} />- <span className="image-caption-name">{attachment.name}</span>- <span- className="image-zoom"- aria-hidden="true"- data-disabled={failed || undefined}- onClick={(e) => {- if (failed) return;- e.stopPropagation();- setZoom(true);- }}- >- <Expand size={14} />- </span>- </span>- ) : null}</button>{zoom ? (<ImageLightboxdiff --git a/chatbot/src/styles.css b/chatbot/src/styles.cssindex 622723ed..9125c9f0 100644--- a/chatbot/src/styles.css+++ b/chatbot/src/styles.css@@ -1001,32 +1001,11 @@ small {outline: 2px solid #7795c4;outline-offset: 2px;}-.image-zoom[data-disabled],-.image-zoom[data-disabled]:hover {- cursor: default;- opacity: 0.4;- background: none;- color: inherit;-}@media (prefers-reduced-motion: reduce) {.message-image-retry {transition: none;}}-.image-caption {- display: flex;- align-items: center;- gap: 6px;- padding: 9px 10px;- font-size: 10px;- color: var(--muted);- overflow: hidden;- white-space: nowrap;- text-overflow: ellipsis;-}-.image-caption svg:last-child {- margin-left: auto;-}.attachment-chip {display: flex;align-items: center;@@ -3957,22 +3936,6 @@ a.draft-title {.node-artifact-open img {cursor: zoom-in;}-.image-caption-name {- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;-}-.image-zoom {- display: inline-flex;- margin-left: auto;- padding: 2px;- border-radius: 6px;- cursor: zoom-in;-}-.image-zoom:hover {- background: var(--hover, rgba(0, 0, 0, 0.06));- color: var(--text);-}.image-lightbox {position: fixed;inset: 0;diff --git a/chatbot/tests/attachment-retry.test.jsx b/chatbot/tests/attachment-retry.test.jsxindex 83dc8aac..76fdece6 100644--- a/chatbot/tests/attachment-retry.test.jsx+++ b/chatbot/tests/attachment-retry.test.jsx@@ -53,4 +53,17 @@ describe("message image attachments", () => {fireEvent.load(screen.getByAltText("shot.png"));expect(screen.queryByText("图片加载失败")).toBeNull();});++ test("renders no filename caption bar under the image", () => {+ const { container } = render(+ <Attachment attachment={image} sessionId="s1" onOpen={vi.fn()} />,+ );+ expect(container.querySelector(".image-caption")).toBeNull();+ // The image itself stays accessible; double-click still opens the viewer.+ expect(screen.getByAltText("shot.png")).toBeInTheDocument();+ fireEvent.doubleClick(screen.getByAltText("shot.png"));+ expect(+ screen.getByRole("dialog", { name: "查看大图 shot.png" }),+ ).toBeInTheDocument();+ });});