Commit Graph
12 Commits
Author SHA1 Message Date
evandro ceca5bf301 fix(extension): generate the API token with a CSPRNG and restrict the discovery file
The bearer token came from Math.random(), which is predictable. Use crypto.randomBytes
and write piagentui-port.json (which stores the token) with mode 0600.
2026-10-10 04:24:44 -03:00
evandro e8927ebf78 perf(extension): cache parsed session files by mtime and size
GET /api/sessions (and every session lookup) re-read and JSON.parsed every
.jsonl session file synchronously on each request, blocking the agent's
event loop. Parsed metadata is now cached per path (bounded to 500 entries)
and invalidated when mtime or size changes.
2026-10-10 04:23:16 -03:00
evandro 3dd3fa5d05 test: read SSE chunks until session.updated arrives
session.status and session.updated are two separate res.write calls, so the
test failed whenever TCP delivered them in different chunks.
2026-10-10 04:23:16 -03:00
evandro adf63ef9f7 chore: remove unused modules and ignore local env and coverage output
src/api/piContract.ts and src/hooks/usePanelResizeStatus.ts have no importers (knip and grep).
2026-10-10 04:20:27 -03:00
evandro 2d2cdf3b19 refactor: reduce cyclomatic complexity of settings, tool data and layout sanitizers
Add characterization tests first, then split the hot spots into small helpers:
- STT/TTS settings updates move to extensions/piagentui-speech-settings.ts (rule tables)
- defaultExtractData is split into diff/diagnostic/output extractors
- getToolSummaryCategory becomes an ordered rule table (toolSummary.ts)
- sanitizePersistedTerminalLayoutMap is split per level
- duplicated diff stats helpers are merged into utils/diffStats.ts
2026-10-10 04:19:34 -03:00
Evandro Fonseca Junior da09846708 Merge pull request #1 from evandrodevbr/codex/review-2026-09-30-049051
Deploy to GitHub Pages / build (push) Failing after 5m55s
Deploy to GitHub Pages / deploy (push) Skipped
Build & Push Frontend Docker Image / build-and-push (push) Failing after 19s
Build Validation / validate (push) Successful in 11m44s
fix: protect download bytes and recover local API errors
2026-09-30 23:04:06 -03:00
Evandro Fonseca Junior e8a252ecde fix: protect download bytes and recover local API errors 2026-09-30 17:08:35 -03:00
Evandro Fonseca Junior 039d25f084 docs: rewrite the READMEs against verified behavior
- README.md rewritten from the real code: quick start, container stack with the actual image namespaces, Pages deploy, verification with the commands that ran, honest limitations
- README.pt-BR.md rewritten; the es/ja translations get a warning pointing at the canonical README
2026-09-14 08:51:30 -03:00
Evandro Fonseca Junior 0e46e5857e chore: rebrand package metadata, pin engines and drop tooling cache
- package.json: homepage/repository point at this repository, node >=22 declared, @mariozechner/pi-coding-agent added as devDependency (extensions/piagentui-server.ts imports it)
- Cargo.toml: repository field filled
- .pi-lens/ ignored and its cached review graph removed from tracking
- three material icons replaced by their 32x32 sources (the committed 16x16 files were broken)
2026-09-14 08:51:30 -03:00
Evandro Fonseca Junior 1dcd951bd7 fix(docker): keep the frontend image on upstream until it is published here
- backend and gateway images come from ghcr.io/evandrodevbr/opencodeui-{backend,gateway} (published)
- ghcr.io/evandrodevbr/opencodeui-frontend was never published (docker-frontend.yml failing since 2026-06-01), so the frontend keeps pulling ghcr.io/lehhair/opencodeui-frontend
2026-09-14 08:51:23 -03:00
Evandro Fonseca Junior d5b4362ed7 fix(pages): deploy the build from main with the repository base path
- trigger on main (the default branch) instead of the non-existent dev
- VITE_BASE_PATH /OpenCodeUI/ -> /PiAgentUI/, matching the repository name
- enable Pages automatically on the first run
2026-09-14 08:51:23 -03:00
Evandro b3489e1ede 🎉 Initial commit: PiAgentUI — AI Agent Desktop & Web UI
Build & Push Frontend Docker Image / build-and-push (push) Canceled after 0s
Build Validation / validate (push) Canceled after 6s
Build & Push Backend Docker Image / build-and-push (push) Failing after 10m10s
Build & Push Gateway Docker Image / build-and-push (push) Failing after 10m9s
A professional workspace for AI coding agents with:
- Real-time streaming chat with SSE
- Session management (fork, clone, tree navigation)
- MCP tools browser & metadata panel
- Skills browser (global, project, package sources)
- Voice input & STT provider configuration
- Integrated terminal & file explorer
- Model selector with capability metadata
- Keyboard-first UI with command palette
- 8 languages (en, pt-BR, es, ja, zh-CN, ar, bn, hi)
- Tauri 2 desktop app
- React 19 + TypeScript + Vite 8 + Tailwind CSS 4
- Pi Agent extension runtime

Originally forked from OpenCodeUI, now an independent project.
License: GPL-3.0-only
2026-06-01 00:50:06 -03:00