Skip to content

fix(agent): render subagent tool failures + harden memory lock symlinks#4507

Merged
senamakel merged 2 commits into
tinyhumansai:mainfrom
senamakel:fix/parity-followup-2
Jul 4, 2026
Merged

fix(agent): render subagent tool failures + harden memory lock symlinks#4507
senamakel merged 2 commits into
tinyhumansai:mainfrom
senamakel:fix/parity-followup-2

Conversation

@senamakel

Copy link
Copy Markdown
Member

Second follow-up to the tinyagents-parity work — addresses the two late review findings on #4504 (which merged before they were resolved).

Fixes

Testing

  • Frontend: SubagentDrawer (16) + ProcessingTranscriptView tests pass; typecheck clean.
  • ⚠️ Rust change verified via CI (local cargo builds OOM on this box).

Submission Checklist

  • N/A: no schema/RPC surface change.
  • Tests: frontend component tests pass; Rust symlink guard validated in CI.
  • N/A: no new user-facing feature (renders an already-plumbed field; security hardening).
  • No secrets/PII; hardens a path-containment boundary.
  • Follows repo conventions (shared component, seam-side).

Refs #4458, #4459.

https://claude.ai/code/session_019j5TLsRLHsM3kqAYFyH4hR

Follow-up to the tinyhumansai#4504 review:
- Extract ToolFailureLines into a shared component and render it in the
  sub-agent renderers (SubagentDrawer rows + ToolTimelineBlock inline rows), so
  a failed child tool actually SHOWS the why/next copy instead of only storing
  it on the transcript item (tinyhumansai#4459).
- update_memory_md: reject a symlinked `.memory-write.lock` and open it
  O_NOFOLLOW on Unix, so a project-controlled symlink can't redirect the
  cross-process flock outside the containment-checked workspace (tinyhumansai#4458).

Claude-Session: https://claude.ai/code/session_019j5TLsRLHsM3kqAYFyH4hR
@senamakel senamakel requested a review from a team July 4, 2026 18:33
@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2539c185-83da-42a2-bc61-14e68671323e

📥 Commits

Reviewing files that changed from the base of the PR and between d1b5eeb and 8ce421d.

📒 Files selected for processing (6)
  • app/src/pages/conversations/components/ProcessingTranscriptView.tsx
  • app/src/pages/conversations/components/SubagentDrawer.tsx
  • app/src/pages/conversations/components/ToolFailureLines.tsx
  • app/src/pages/conversations/components/ToolTimelineBlock.tsx
  • app/src/pages/conversations/components/__tests__/SubagentDrawer.test.tsx
  • src/openhuman/tools/impl/filesystem/update_memory_md.rs

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d4269e1ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +78 to +84
#[cfg(unix)]
{
// O_NOFOLLOW closes the TOCTOU window: if a symlink is swapped in
// after the check above, the open fails (ELOOP) rather than follows.
use std::os::unix::fs::OpenOptionsExt;
opts.custom_flags(libc::O_NOFOLLOW);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Fail closed on Windows lock symlink races

This hardening only makes the final open no-follow under cfg(unix). In the supported Windows desktop build, the code still does symlink_metadata followed by a normal OpenOptions::open, so a workspace-controlled process can swap .memory-write.lock to a reparse-point symlink in that gap and redirect the advisory lock outside the containment-checked workspace. Please either reject this path on Windows or open with the Windows no-reparse/fail-if-symlink flags as well.

Useful? React with 👍 / 👎.

@senamakel senamakel merged commit a818f1b into tinyhumansai:main Jul 4, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant