Commit graph

93 commits

Author SHA1 Message Date
Advait Paliwal
f93fe7d1a0 fix: simplify chat rendering, persist drawer size, fix auth guard (v2) (#335)
* fix: simplify chat rendering, persist drawer size, fix auth guard

- Simplify chat-messages.tsx: remove dual-path tailContent rendering,
  always use AssistantMessage for both stream and committed states
- Remove dead code: chat-status-state.ts (ThinkingGroup/ToolGroup/StatusTimer)
- Remove dead exports: busyStartedAt, composerPlaceholder from use-chat-session
- Fix ThinkingBlock label: remove hardcoded label="Thinking" so defaults
  work ("Thinking" shimmer → "Thought" static)
- Persist resizable drawer panel size in localStorage alongside open state
  to eliminate layout shift on page refresh
- Add busy grace period in use-chat-session for smooth stream→committed transition
- Accumulate reasoning parts across multi-step tool use in durable-chat-run
- Fix auth-guard: remove localSandboxMode bypass so login always works
- Fix chatThreads.getMessages: return [] instead of throwing when unauthenticated

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: remove unnecessary busy grace period

Convex reactive queries handle data consistency — no need for a 600ms
grace period to bridge the stream→committed transition.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: remove dead shouldShowToolsForAssistantSnapshot

Greptile P1: function was exported and tested but never called.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: stabilize resizable drawer defaultSize to prevent drag breakage

The aside panel's defaultSize prop included state.activeSize, which
changed on every drag frame. In react-resizable-panels, changing
defaultSize triggers panel de-registration and re-registration, which
destroys the active drag's panel references and prevents resizing.

Use useState initializer to capture the size once on mount and keep it
stable. The existing useEffect handles all open/close/resize via
panelRef imperatively.

Also clean up context-chip: split active/inactive into distinct
render paths, remove unused Plus import.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: resolve ../ relative paths in file citations

Strip one leading ../ segment and resolve against rootPath's parent
instead of naively concatenating, which produced un-normalized routes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 16:01:57 -07:00
Advait Paliwal
6a4f4d1c80 Revert "fix: simplify chat rendering, persist drawer size, fix auth guard (#334)"
This reverts commit 4a36e795a6.
2026-03-17 12:22:01 -07:00
Advait Paliwal
4a36e795a6 fix: simplify chat rendering, persist drawer size, fix auth guard (#334)
* fix: simplify chat rendering, persist drawer size, fix auth guard

- Simplify chat-messages.tsx: remove dual-path tailContent rendering,
  always use AssistantMessage for both stream and committed states
- Remove dead code: chat-status-state.ts (ThinkingGroup/ToolGroup/StatusTimer)
- Remove dead exports: busyStartedAt, composerPlaceholder from use-chat-session
- Fix ThinkingBlock label: remove hardcoded label="Thinking" so defaults
  work ("Thinking" shimmer → "Thought" static)
- Persist resizable drawer panel size in localStorage alongside open state
  to eliminate layout shift on page refresh
- Add busy grace period in use-chat-session for smooth stream→committed transition
- Accumulate reasoning parts across multi-step tool use in durable-chat-run
- Fix auth-guard: remove localSandboxMode bypass so login always works
- Fix chatThreads.getMessages: return [] instead of throwing when unauthenticated

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: remove unnecessary busy grace period

Convex reactive queries handle data consistency — no need for a 600ms
grace period to bridge the stream→committed transition.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: remove dead shouldShowToolsForAssistantSnapshot

Greptile P1: function was exported and tested but never called.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 12:20:42 -07:00
Hari
e59144d2b8 Merge pull request #325 from getcompanion-ai/chat-timeout
fix chat timeout
2026-03-14 14:57:53 -04:00
cb30fa5fd1 updates 2026-03-14 14:53:32 -04:00
c79ae1e621 Merge branch 'staging' of https://github.com/getcompanion-ai/companion-cloud into chat-timeout 2026-03-14 14:24:54 -04:00
5a8dbde58d fixes 2026-03-14 11:27:34 -04:00
15836fde3d Merge branch 'staging' of https://github.com/getcompanion-ai/companion-cloud into chat-timeout
Co-authored-by: Codex <noreply@openai.com>
2026-03-14 10:47:29 -04:00
Advait Paliwal
fc87e173e5 Merge branch 'fix/landing-webp-ui' into staging 2026-03-13 22:00:03 -07:00
41bf2776f1 fix chat timeout 2026-03-14 00:19:59 -04:00
Advait Paliwal
0d743bc592 fix: landing page WebP refs, hero layout, chat UI (#321)
* fix: landing page WebP refs, hero layout, chat UI improvements

- Convert all remaining .png/.jpg references to .webp across demo stories, workspace docs, and generate scripts
- Fix hero persona pills overlapping image at zoom by adding vertical padding
- Remove avatar from chat header
- Render multiple attachments side by side (images, PDFs, docs) with audio on its own row
- Right-align user attachments, size AI images larger than user images
- Make bold text semibold in markdown
- Remove redundant MRR Tracker attachment from founder briefing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: include models.generated.ts and dashboard layout changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: remove generation scripts with hardcoded API keys

Delete scripts that had Google AI and FAL.ai keys committed
directly in source. Keys should be rotated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 17:24:05 -07:00
Advait Paliwal
39c6b9e08f chore: include models.generated.ts and dashboard layout changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 08:43:05 -07:00
Hari
9b9a0170d6 Merge pull request #317 from getcompanion-ai/ssebeat
sse heartbeat and ui
2026-03-12 21:29:49 -04:00
124fdce1a0 sse heartbeat and ui 2026-03-12 20:21:58 -04:00
Hari
970e40a215 Merge pull request #315 from getcompanion-ai/fix-inter
abort route
2026-03-12 15:35:46 -04:00
a5e8a69cd4 abort route 2026-03-12 15:21:04 -04:00
e19f575229 mime 2026-03-12 02:28:11 -04:00
Hari
9115d5647f Merge pull request #311 from getcompanion-ai/hari/migrate-chat-lossless-convex
hari/migrate chat lossless convex
2026-03-12 01:59:09 -04:00
08717ea6d1 update chat 2026-03-12 01:51:33 -04:00
4dc5e1b376 feat: add structured part events to gateway for teamActivity, media, and error parts
Extends GatewayEvent union with structured_part variants, adds matching
HistoryPart types, wires SSE emission in runtime handleChat, and maps
agent-core content parts to history in session-state.
2026-03-12 00:40:39 -04:00
Hari
a5d70ce55e Merge pull request #305 from getcompanion-ai/computer
computer use tool
2026-03-11 15:01:34 -04:00
3ff9f21a4f fix: terminate xdotool type options
Address the latest PR 305 review comment by passing typed text after an explicit option separator and add a regression test that captures the forwarded argv.

Co-authored-by: Codex <noreply@openai.com>
2026-03-11 14:49:05 -04:00
8a43732b7e fix: validate computer snapshot ids
- reject unsafe snapshot ids in the TypeScript wrapper before spawning the helper
- reject unsafe snapshot ids in agent-computer before loading snapshot files
- add regression coverage for wrapper and helper traversal attempts

Co-authored-by: Codex <noreply@openai.com>
2026-03-11 14:34:10 -04:00
a4250bad30 fix: harden computer tool helper
- remove the unimplemented accessibility observe mode from the public contract
- refuse unmatched app_open requests instead of shelling out
- add direct helper tests for both review findings

Co-authored-by: Codex <noreply@openai.com>
2026-03-11 14:26:18 -04:00
e1bba1c1a5 computer use tool 2026-03-11 14:13:03 -04:00
3919bbf708 xubuntu 2026-03-11 03:38:50 -04:00
Hari
81b0a2f47a Merge pull request #301 from getcompanion-ai/ubuntu
ubuntu
2026-03-11 02:42:16 -04:00
d0f85b30cc pull into local 2026-03-11 02:31:07 -04:00
dd0c89d8aa ubuntu 2026-03-11 02:08:27 -04:00
Hari
cf2bb61383 Merge pull request #293 from getcompanion-ai/rename
refactor: finish companion rename migration
2026-03-10 13:17:33 -04:00
7896a91262 build 2026-03-10 13:17:18 -04:00
536241053c refactor: finish companion rename migration
Complete the remaining pi-to-companion rename across companion-os, web, vm-orchestrator, docker, and archived fixtures.

Verification:
- semantic rg sweeps for Pi/piConfig/getPi/.pi runtime references
- npm run check in apps/companion-os (fails in this worktree: biome not found)

Co-authored-by: Codex <noreply@openai.com>
2026-03-10 07:39:32 -05:00
Hari
e8fe3d54af Merge pull request #289 from getcompanion-ai/channels
Fix Slack and Telegram channel setup
2026-03-10 00:16:51 -04:00
b268f75baf fix: simplify slack and telegram channel setup
Expose deterministic Slack and Telegram channel status from the current pi-channels config, remove one-click connect from the dashboard dialog, and enable the chat bridge when users save channel tokens so messages reach the agent.

Co-authored-by: Codex <noreply@openai.com>
2026-03-09 20:48:02 -07:00
a5f4b58221 chat titles 2026-03-09 20:12:00 -07:00
ce61669442 prompt again 2026-03-09 20:11:47 -07:00
5fe2620c68 prompt 2026-03-09 20:07:14 -07:00
8502a190f8 fix claude auth 2026-03-09 17:35:13 -07:00
89b705194b fix: address steer review feedback
Co-authored-by: Codex <noreply@openai.com>
2026-03-09 17:07:05 -07:00
4a29c13e0d feat: steer active chat messages
Co-authored-by: Codex <noreply@openai.com>
2026-03-09 16:56:24 -07:00
Hari
a018a0cd3e Merge pull request #281 from getcompanion-ai/codex5.3
model upgrade
2026-03-09 19:38:00 -04:00
a1c66c805a model upgrade 2026-03-09 16:37:39 -07:00
Hari
92c3bcf9f9 Merge pull request #277 from getcompanion-ai/fix-package
fix loading
2026-03-09 17:42:51 -04:00
cc7f68d4d2 fix loading 2026-03-09 14:37:59 -07:00
Hari
a46e9ede61 Merge pull request #276 from getcompanion-ai/fix-package
fix grind package installation
2026-03-09 16:47:39 -04:00
0fbb44b575 fix grind package installation 2026-03-09 13:43:14 -07:00
Hari
7f72ee175d Merge pull request #275 from getcompanion-ai/prompt
prompt
2026-03-09 16:33:06 -04:00
ffb6f1db70 prompt 2026-03-09 13:31:12 -07:00
Hari
d880d2740e Merge pull request #273 from getcompanion-ai/grind
fix chat
2026-03-09 16:02:14 -04:00
Hari
064517f749 Merge pull request #274 from getcompanion-ai/prompt
update
2026-03-09 15:53:01 -04:00