Commit Graph

408 Commits

Author SHA1 Message Date
Mohamed Boudra
460a2a583f Run E2E tests for Codex MCP 2025-12-24 18:15:08 +07:00
Mohamed Boudra
19aaee9c26 Add Codex MCP agent provider 2025-12-24 18:13:14 +07:00
Mohamed Boudra
d04fbb981c Add Codex MCP E2E test coverage 2025-12-24 17:57:49 +07:00
Mohamed Boudra
851c687b4f Add MCP persistence resume e2e test 2025-12-24 17:31:47 +07:00
Mohamed Boudra
4d75bd45e8 Add MCP event mapping parity e2e tests 2025-12-24 17:28:11 +07:00
Mohamed Boudra
797425c4e2 Merge origin/main 2025-12-24 17:21:26 +07:00
Mohamed Boudra
40a8035090 Plan MCP provider behavior matrix and tests 2025-12-24 17:19:06 +07:00
Mohamed Boudra
f5961fa044 refactor(server): extract test daemon setup into shared utility and switch mcp e2e test to codex provider 2025-12-24 17:18:31 +07:00
Mohamed Boudra
9318048f51 ensure mcp waits surface permissions 2025-12-24 09:05:24 +00:00
Mohamed Boudra
a24f578916 make mcp e2e test claude permissions 2025-12-24 08:55:16 +00:00
Mohamed Boudra
e37d50e938 make mcp agent e2e test provider-aware 2025-12-24 08:45:02 +00:00
Mohamed Boudra
e1f79c1d6f add mcp agent e2e smoke test 2025-12-24 08:38:25 +00:00
Mohamed Boudra
d787c5f1bc refactor daemon bootstrap and add smoke test 2025-12-24 08:25:17 +00:00
Mohamed Boudra
37da13a38b Fix markdown list text wrapping on Android
- Add custom list rendering rules in message.tsx for proper flex layout
- Remove flexWrap from list content styles (causes Android clipping)
- Use flex: 1 and flexShrink: 1 for natural text wrapping
- Add minWidth: 0 to content containers for proper shrinking

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-24 04:41:37 +00:00
Mohamed Boudra
09f130408b Fix agent menu spacing 2025-12-23 23:24:13 +07:00
Mohamed Boudra
8a06b378d8 Add running dot to sub-agent list 2025-12-23 23:19:26 +07:00
Mohamed Boudra
eb48ae0f6b Make Running and Finished status mutually exclusive
Running takes priority over Finished indicator.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 23:14:54 +07:00
Mohamed Boudra
0526124fbd Fix type errors in server code
- Filter undefined values from env record for Codex SDK
- Add string type check for ParsedQs array element

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 23:11:48 +07:00
Mohamed Boudra
993eed0628 Allow agent creation outside git repos 2025-12-23 23:11:48 +07:00
Mohamed Boudra
38c1f52035 Use agent directories for working dir suggestions 2025-12-23 23:11:48 +07:00
Mohamed Boudra
c4b9a68c6b Replace needs attention with finished status 2025-12-23 23:11:48 +07:00
Mohamed Boudra
f2e6a55fec Sort and scroll sub-agent list 2025-12-23 23:11:48 +07:00
Mohamed Boudra
4a4a2507dd fix(app): prevent markdown list content overflow with proper flex shrinking 2025-12-23 16:09:16 +00:00
Mohamed Boudra
6a9b57ae0c Simplify agent list UI and add bearer token auth for Codex MCP
- Replace SectionList with FlatList in agent list, sorting attention items to top
- Persist server selection preference in create agent modal
- Add bearer token authentication support for agent-control MCP endpoint
- Pass bearer token through Codex wrapper script for MCP auth

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 22:11:51 +07:00
Mohamed Boudra
bf0ec80fb5 Move agent-control MCP config into AgentManager 2025-12-23 15:45:48 +07:00
Mohamed Boudra
dc90f57567 Inject agent-control MCP URL for codex session configs 2025-12-23 15:19:49 +07:00
Mohamed Boudra
077ecae607 Wire agent-control MCP URL into codex agents 2025-12-23 15:08:34 +07:00
Mohamed Boudra
e2ba6c8634 Add developer_instructions to Codex wrapper 2025-12-23 15:02:40 +07:00
Mohamed Boudra
4699297e4e Inject agent-control MCP via codex wrapper 2025-12-23 14:42:26 +07:00
Mohamed Boudra
957decc1f7 Trim dictation toasts to failures 2025-12-23 14:02:55 +07:00
Mohamed Boudra
702159fb75 Route agent MCP parent via query param 2025-12-23 13:49:18 +07:00
Mohamed Boudra
38a4c70aec Improve markdown styling and enable text selection on mobile
- Fix agent chat bottom scroll padding by adding overflow hidden to inputAreaContainer
- Create shared markdown-styles.ts with comprehensive styling for tables, headings, code blocks, blockquotes, and horizontal rules
- Enable text selection in AssistantMessage and AgentThoughtMessage by overriding markdown render rules with selectable={true}
- Path chips remain non-selectable to preserve onPress navigation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 12:32:52 +07:00
Mohamed Boudra
adc56da129 Mark bottom sheet handle/padding test complete 2025-12-22 04:34:58 +00:00
Mohamed Boudra
825154f35a Tweak bottom sheet sheet styling 2025-12-22 04:21:58 +00:00
Mohamed Boudra
b4be45e1ab test: bottom sheet dark mode background (PASSED)
Verified via Playwright MCP that the bottom sheet background is dark
in dark mode, matching the app's dark theme. Screenshot saved to
~/public/bottom-sheet-dark-mode-test.png for manual verification.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 04:06:56 +00:00
Mohamed Boudra
070314fa5f Fix bottom sheet dark theme background 2025-12-22 04:05:19 +00:00
Mohamed Boudra
b601d96c23 test: bottom sheet dark mode background (PASSED)
Verified via Playwright MCP that the tool call bottom sheet correctly
respects dark mode - background is dark, not white. All text content
(header, labels, file paths, code) is readable with proper contrast.

Screenshot saved to .playwright-mcp/tool-call-bottom-sheet-dark-mode.png.

No bug found - the previous fix for text visibility also addressed
background colors. Fix and re-test tasks marked as skipped.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 03:54:49 +00:00
Mohamed Boudra
bd3cfff30e test: tool call bottom sheet text visibility (PASSED)
Verified via Playwright MCP that the tool call bottom sheet fix is working.
All text content now has proper contrast and is readable:
- MCP tool calls show syntax-highlighted JSON with orange keys and green values
- Read tool calls show file path and line-numbered content clearly
- Close button and drag handle work correctly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 03:39:42 +00:00
Mohamed Boudra
56a287a85d fix: tool call bottom sheet text visibility
Replace react-native-gesture-handler ScrollView with React Native's
built-in ScrollView to fix text rendering issues inside @gorhom/bottom-sheet.
The gesture handler's ScrollView was causing text to render nearly invisible.

Also add explicit background colors to scroll containers for consistent
appearance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 03:37:17 +00:00
Mohamed Boudra
7f3ba3f5ce test: tool call bottom sheet text visibility (FAILED)
Tested tool call bottom sheet via Playwright MCP on mobile web.
Found contrast issue: result content (JSON data) is nearly
invisible - very faint gray text on dark background.

Header and labels visible, but actual content unreadable.
Screenshots saved to .playwright-mcp/ directory.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 03:34:05 +00:00
Mohamed Boudra
f826fb6965 checkpoint: all 7 verification tests passed
Reviewed all double-check verification tests:
- Claude/Codex runtime model display: working
- Homepage root agents filtering: working
- Sub-agents menu visibility and navigation: working
- Back button to parent agent: working (after fix)
- Tool call bottom sheet on mobile: working
- Git diff no infinite loop: working

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 01:17:30 +00:00
Mohamed Boudra
aaaca15267 test: git diff screen loads without infinite loop (PASSED)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 01:16:41 +00:00
Mohamed Boudra
a89b638ff3 test: tool call bottom sheet opens on mobile web (PASSED)
Verified via Playwright MCP testing:
- MCP tool calls show JSON result in bottom sheet
- Edit tool calls show file path and syntax-highlighted diff
- Bash commands show command text and output
- Read tool calls show file path and line-numbered content
- Close button and drag handle work correctly
- Backdrop appears behind sheet

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 01:14:47 +00:00
Mohamed Boudra
a8212e26c1 test: back button returns to parent agent instead of homepage (PASSED)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 01:11:53 +00:00
Mohamed Boudra
7d233777db fix: back button returns to parent agent instead of homepage
When viewing a child agent (an agent with parentAgentId set), the back
button now navigates to the parent agent screen instead of always going
to the homepage. Added handleBack callback in AgentScreenContent that
checks for parentAgentId and routes accordingly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 01:10:22 +00:00
Mohamed Boudra
3f0a08ad50 test: back button returns to homepage instead of parent agent (FAILED)
Tested via Playwright MCP - navigating from parent agent to child agent
via Sub-Agents menu, then pressing back button. Expected: return to parent
agent screen. Actual: navigates to homepage instead.

Added fix task and re-test task to plan.md.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 01:08:16 +00:00
Mohamed Boudra
b13bd2c924 test: verify sub-agents are visible in parent agent menu
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 01:06:34 +00:00
Mohamed Boudra
a488349a31 test: verify homepage only shows root agents (no child agents)
PASSED: Created parent agent, spawned child via MCP create_agent,
confirmed child is filtered out of homepage list while parent remains
visible. Homepage filtering working correctly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 01:04:48 +00:00
Mohamed Boudra
8c9d55414e test: verify Codex agent displays runtime model correctly
PASSED. Created Codex agent with "Automatic" model config.
Agent info menu correctly displays Model: gpt-5.1-codex-max
(actual runtime model from rollout file).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 01:01:53 +00:00
Mohamed Boudra
22cb6dcecd test: verify Claude agent displays runtime model correctly
PASSED: Created Claude agent with "Automatic" model. Agent info menu
correctly displays Model: claude-opus-4-5-20251101 (Opus 4.5).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 00:59:22 +00:00